00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00031 #ifndef TOPKMINER_H
00032 #define TOPKMINER_H
00033
00034 #define MODE_TOPK_NULL 0
00035 #define MODE_TOPK_NORMAL 1
00036
00037
00038
00039 #include "BSEvaluator.h"
00040 #include "LatticeMiner.h"
00041
00049 class TopKMiner: public LatticeMiner
00050 {
00051 protected:
00052
00053 BSEvaluator* bse;
00054
00055
00056 unsigned int k;
00057
00058
00059 unsigned int size;
00060
00061
00062 int mode;
00063
00064
00065 virtual void analyzeHelper();
00066 virtual unsigned int analyzeLevel(unsigned int level);
00067 virtual void handlePrinting(unsigned int level);
00068 virtual void analyzeTopKNull();
00069 virtual void analyzeTopKNormal();
00070
00071 public:
00072 TopKMiner(float balance = 0.5, float support = 1.0, unsigned int k = 1,
00073 unsigned int size = 100, unsigned int buffer_size = 1000,
00074 bool positive = false, BinaryMatrix* tm = NULL,
00075 int mode = MODE_TOPK_NULL);
00076 TopKMiner(const TopKMiner& src);
00077 virtual ~TopKMiner();
00078 virtual TopKMiner& operator =(const TopKMiner& rhs);
00079 };
00080
00081 #endif