ca.pfv.spmf.tools.dataset_stats
Class TransactionStatsGenerator
- java.lang.Object
-
- ca.pfv.spmf.tools.dataset_stats.TransactionStatsGenerator
-
public class TransactionStatsGenerator extends java.lang.ObjectThis 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.
-
-
Constructor Summary
Constructors Constructor and Description TransactionStatsGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidgetStats(java.lang.String path)This method generates statistics for a transaction database (a file)
-
DMelt 3.0 © DataMelt by jWork.ORG