Documentation of 'ca.pfv.spmf.tools.dataset_generator.TransactionDatasetUtilityGenerator' Java class
TransactionDatasetUtilityGenerator
ca.pfv.spmf.tools.dataset_generator

Class TransactionDatasetUtilityGenerator



  • public class TransactionDatasetUtilityGenerator
    extends java.lang.Object
    Convert a transaction database to a transaction database with utility values from the source code.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void convert(java.lang.String input, java.lang.String output, int maxQuantity, double externalUtilityFactor)
      Convert a transaction database to a transaction database with utility values from the source code.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransactionDatasetUtilityGenerator

        public TransactionDatasetUtilityGenerator()
    • Method Detail

      • convert

        public void convert(java.lang.String input,
                            java.lang.String output,
                            int maxQuantity,
                            double externalUtilityFactor)
                     throws java.lang.NumberFormatException,
                            java.io.IOException
        Convert a transaction database to a transaction database with utility values from the source code.
        Parameters:
        input - the input file path (a transaction database in SPMF format)
        output - the output file path
        maxQuantity - the maximum quantity of each item in a transaction
        externalUtilityFactor - the external utility of items generated by Random.nextGaussian() will be multiplied by this value
        Throws:
        java.io.IOException - if an error while reading/writting files.
        java.lang.NumberFormatException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.