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

StatCoder< CODER > Class Template Reference

This class assigns 0,1,. More...

#include <StatCoder.hpp>

List of all members.

Public Types

typedef CODER::params_t params_t

Public Member Functions

 StatCoder (const params_t *par)
template<class BIS>
counter_t nextTransactionBIS (BIS &transaction)
template<class UAC>
counter_t nextTransactionUAC (UAC &transaction)

Protected Attributes

bool first_run
unsigned int nr_of_transactions
unsigned int sum_of_tr_sizes


Detailed Description

template<class CODER>
class StatCoder< CODER >

This class assigns 0,1,.

.. new codes to the frequent items. Actually, this class can be regarded as a wrapper around a transaction reader, that changes the items of the read in transaction with new codes. Obviuosly, when an itemset is written out, the items must be decoded. Writting out a coded itemset, however, is not the duty of the StatCoder class but rather the duty of a decoder. After the StatCoder generated the new codes it calls the setCodeInverse function of the decoder.

Parameters:
T_R the transaction reader
D the decoder

Definition at line 25 of file StatCoder.hpp.


Member Typedef Documentation

template<class CODER>
typedef CODER::params_t StatCoder< CODER >::params_t
 

Definition at line 28 of file StatCoder.hpp.


Constructor & Destructor Documentation

template<class CODER>
StatCoder< CODER >::StatCoder const params_t par  )  [inline]
 

Definition at line 29 of file StatCoder.hpp.


Member Function Documentation

template<class CODER>
template<class BIS>
counter_t StatCoder< CODER >::nextTransactionBIS BIS &  transaction  )  [inline]
 

Definition at line 31 of file StatCoder.hpp.

References StatCoder< CODER >::first_run, StatCoder< CODER >::nr_of_transactions, and StatCoder< CODER >::sum_of_tr_sizes.

template<class CODER>
template<class UAC>
counter_t StatCoder< CODER >::nextTransactionUAC UAC &  transaction  )  [inline]
 

Definition at line 52 of file StatCoder.hpp.

References StatCoder< CODER >::first_run, StatCoder< CODER >::nr_of_transactions, and StatCoder< CODER >::sum_of_tr_sizes.


Member Data Documentation

template<class CODER>
bool StatCoder< CODER >::first_run [protected]
 

Definition at line 71 of file StatCoder.hpp.

Referenced by StatCoder< CODER >::nextTransactionBIS(), and StatCoder< CODER >::nextTransactionUAC().

template<class CODER>
unsigned int StatCoder< CODER >::nr_of_transactions [protected]
 

Definition at line 72 of file StatCoder.hpp.

Referenced by StatCoder< CODER >::nextTransactionBIS(), and StatCoder< CODER >::nextTransactionUAC().

template<class CODER>
unsigned int StatCoder< CODER >::sum_of_tr_sizes [protected]
 

Definition at line 73 of file StatCoder.hpp.

Referenced by StatCoder< CODER >::nextTransactionBIS(), and StatCoder< CODER >::nextTransactionUAC().


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