Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

FrequentFilter< IT_R > Class Template Reference

This class determines the frequent items. More...

Collaboration diagram for FrequentFilter< IT_R >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FrequentFilter (IT_R &it_r)
void findFrequentItems (std::vector< std::pair< counter_t, item_t > > &freq_items_with_counters, counter_t &nr_of_transactions, counter_t &min_supp, bool relative=false, double relminsupp=0.0)
 if relative=true then relminsupp will be used to calculate the absolute minimum support, which will be stored in min_supp.

Private Attributes

IT_R & it_r

Detailed Description

template<class IT_R>
class FrequentFilter< IT_R >

This class determines the frequent items.

It just reads in transactions one-by-one, increases the counter of the items, and then selects the frequent items.

Parameters:
IT_R the transaction reader

Definition at line 18 of file FrequentFilter.cpp.


Constructor & Destructor Documentation

template<class IT_R>
FrequentFilter< IT_R >::FrequentFilter IT_R &  it_r  )  [inline]
 


Member Function Documentation

template<class IT_R>
void FrequentFilter< IT_R >::findFrequentItems std::vector< std::pair< counter_t, item_t > > &  freq_items_with_counters,
counter_t nr_of_transactions,
counter_t min_supp,
bool  relative = false,
double  relminsupp = 0.0
 

if relative=true then relminsupp will be used to calculate the absolute minimum support, which will be stored in min_supp.

relminsupp is a real number in [0,1]. (Thus not a percentage)

Definition at line 45 of file FrequentFilter.cpp.

References FrequentFilter< IT_R >::it_r.

Referenced by DBCacheTester::doTest(), and main().


Member Data Documentation

template<class IT_R>
IT_R& FrequentFilter< IT_R >::it_r [private]
 

Definition at line 33 of file FrequentFilter.cpp.

Referenced by FrequentFilter< IT_R >::findFrequentItems().


The documentation for this class was generated from the following file:
Generated on Sun Sep 17 17:55:22 2006 for FIM environment by  doxygen 1.4.4