Documentation of 'ca.pfv.spmf.tools.dataset_stats.TransactionStatsGenerator' Java class
TransactionStatsGenerator
ca.pfv.spmf.tools.dataset_stats

Class TransactionStatsGenerator



  • public class TransactionStatsGenerator
    extends java.lang.Object
    This class read a transaction database and calculates statistics about this transactions database, then it prints the statistics to the console.

    In this version this class reads the database into memory before calculating the statistics. It could be optimized to calculate statistics without reading the database in memory because a single pass is required. It was done like that because the code is simpler and easier to understand and performance is not an issue for this kind of tasks.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void getStats(java.lang.String path)
      This method generates statistics for a transaction database (a file)
      • Methods inherited from class java.lang.Object

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

      • TransactionStatsGenerator

        public TransactionStatsGenerator()
    • Method Detail

      • getStats

        public void getStats(java.lang.String path)
                      throws java.io.IOException
        This method generates statistics for a transaction database (a file)
        Parameters:
        path - the path to the file
        Throws:
        java.io.IOException - exception if there is a problem while reading the file.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.