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

OneByOneSupportCounter< DATA_STRUCTURE, TR, SC > Class Template Reference

OnyByOneSupportCounter treats transactions individually, i.e. More...

#include <OneByOneSupportCounter.hpp>

Collaboration diagram for OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OneByOneSupportCounter (DATA_STRUCTURE &data_structure, TR &transaction_reader)
void countSupport (const unsigned int candidate_size)

Private Attributes

DATA_STRUCTURE & data_structure
TR & transaction_reader
SC support_counter

Detailed Description

template<class DATA_STRUCTURE, class TR, class SC = Dummy>
class OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >

OnyByOneSupportCounter treats transactions individually, i.e.

it reads the transactions one by one and calls the support count method for each of them. The class that actually does the "sub support count" is given in the constructor and its type is given by the third template parameter.

Parameters:
DATA_STRUCTURE the data structure that stores the candidates
TR a Transaction_Reader
SC the support counter that actually does the support counting. It has to implement the SupportCounterInterface interface.

Definition at line 31 of file OneByOneSupportCounter.hpp.


Constructor & Destructor Documentation

template<class DATA_STRUCTURE, class TR, class SC = Dummy>
OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::OneByOneSupportCounter DATA_STRUCTURE &  data_structure,
TR &  transaction_reader
[inline]
 

Definition at line 40 of file OneByOneSupportCounter.hpp.


Member Function Documentation

template<class DATA_STRUCTURE, class TR, class SC>
void OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::countSupport const unsigned int  candidate_size  )  [inline]
 

Definition at line 49 of file OneByOneSupportCounter.hpp.

References OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::data_structure, OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::support_counter, and OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::transaction_reader.


Member Data Documentation

template<class DATA_STRUCTURE, class TR, class SC = Dummy>
DATA_STRUCTURE& OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::data_structure [private]
 

Definition at line 35 of file OneByOneSupportCounter.hpp.

Referenced by OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::countSupport().

template<class DATA_STRUCTURE, class TR, class SC = Dummy>
SC OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::support_counter [private]
 

Definition at line 37 of file OneByOneSupportCounter.hpp.

Referenced by OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::countSupport().

template<class DATA_STRUCTURE, class TR, class SC = Dummy>
TR& OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::transaction_reader [private]
 

Definition at line 36 of file OneByOneSupportCounter.hpp.

Referenced by OneByOneSupportCounter< DATA_STRUCTURE, TR, SC >::countSupport().


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