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

SeqFrequentFilter< IT_R > Class Template Reference

This class determines the frequent items. More...

Collaboration diagram for SeqFrequentFilter< IT_R >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SeqFrequentFilter (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 SeqFrequentFilter< 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 19 of file SeqFrequentFilter.cpp.


Constructor & Destructor Documentation

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


Member Function Documentation

template<class IT_R>
void SeqFrequentFilter< 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 47 of file SeqFrequentFilter.cpp.

References SeqFrequentFilter< IT_R >::it_r.

Referenced by main().


Member Data Documentation

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

Definition at line 34 of file SeqFrequentFilter.cpp.

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


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