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

Coder.hpp File Reference

This class assigns 0,1,... new values (codes) to the frequent items. More...

#include "common.hpp"
#include <vector>
#include <set>
#include "io/input/transaction_reader/brBufferedTransactionReader.hpp"
#include "io/codec/decoder/df/CacheDFDecoder.hpp"

Include dependency graph for Coder.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Coder< T_R, D >
class  Coder< T_R, D >::params_t

Enumerations

enum  CodeMode { ASC, DESC, NOCARE }


Detailed Description

This class assigns 0,1,... new values (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 Coder class but rather the duty of a decoder. After the Coder generated the new codes it calls the setCodeInverse function of the decoder.

Parameters:
T_R the transaction reader, it has to implement TransactionReader interface
D the decoder
Author:
Ferenc BODON
Date:
2005-04-29

Definition in file Coder.hpp.


Enumeration Type Documentation

enum CodeMode
 

Enumerator:
ASC  Ascending order according to supports.
DESC  Descending order according to supports.
NOCARE  Support values are not taken into consideration.

Definition at line 30 of file Coder.hpp.


Generated on Sun Sep 17 17:51:30 2006 for FIM environment by  doxygen 1.4.4