00001 /*************************************************************************** 00002 apriori.h - description 00003 ------------------- 00004 begin : cs dec 26 2002 00005 copyright : (C) 2002 by Ferenc Bodon 00006 email : bodon@mit.bme.hu 00007 ***************************************************************************/ 00008 00009 #ifndef APRIORI_H 00010 #define APRIORI_H 00011 00012 #include "Apriori_Trie.hpp" 00013 #include <map> 00014 00015 00078 class Apriori { 00079 public: 00080 Apriori( ifstream& basket_file, const char* output_file_name ); 00081 00083 void APRIORI_alg( const unsigned long min_supp ); 00084 ~Apriori(); 00085 private: 00086 00088 void support( const itemtype& candidate_size ); 00089 00090 protected: 00091 // No protected class data members 00092 00093 private: 00095 Apriori_Trie* apriori_trie; 00098 Input_Output_Manager input_output_manager; 00100 map<vector<itemtype>, unsigned long> reduced_baskets; 00103 bool store_input; 00104 }; 00105 00106 #endif