#include <SimpleAssocRuleWriter.hpp>
Inheritance diagram for SimpleAssocRuleWriter:
Public Types | |
typedef PARENT::params_t | params_t |
enum | Mode { READ, WRITE } |
Public Member Functions | |
SimpleAssocRuleWriter (const params_t *par) | |
template<typename ANTECIterator, typename CONSEQIterator> | |
void | writeAssocRule (ANTECIterator antec_first, ANTECIterator antec_last, CONSEQIterator conseq_first, CONSEQIterator conseq_last, counter_t union_support, float confidence, float lift) |
SimpleDFDecoder (const params_t *par) | |
void | pushItem (item_t item) |
void | write (const counter_t support) |
void | writeNEE (const counter_t support, const std::vector< item_t > &nee_items) |
void | pushItemWithWrite (item_t item, counter_t support) |
void | pushItemWithPrevSupport (item_t item) |
void | popItem () |
SimpleDecoderBase (const typename DecoderBase< BufferedNormalOutput< StreamRepr > >::params_t *par) | |
void | setCodeInverse (const std::vector< item_t > &code_inverse) |
DecoderBase (const params_t *par) | |
BufferedNormalOutput (const params_t *par) | |
void | writeItemsetAndCounter (InputIterator first, InputIterator last, counter_t support) |
BufferedOutput (const params_t *par) | |
OutputBase (const params_t *par) | |
void | popAll () |
remove all items form the stack | |
void | rewind () |
void | flush () |
std::streamsize | readFromFile (char *buffer, std::streamsize buffer_size) |
void | writeToFile (const char *str, std::streamsize n) |
Static Public Member Functions | |
static bool DINLINE | isDFO () |
Protected Types | |
typedef SimpleDFDecoder< BufferedNormalOutput< StreamRepr > > | PARENT |
Protected Attributes | |
std::vector< item_t > | code_inverse |
The inverse of code vector. | |
std::streamsize | buffer_size |
The size of the buffer. | |
char * | buffer |
The buffer. | |
std::ifstream | input_stream |
stream to read | |
std::ofstream | output_stream |
steam to write | |
char * | file_buffer |
the low-level buffer | |
std::streamsize | file_buffer_size |
the size of the lowest level buffer | |
Mode | mode |
operating mode |
Definition at line 14 of file SimpleAssocRuleWriter.hpp.
|
Reimplemented from SimpleDFDecoder< BufferedNormalOutput< StreamRepr > >. Definition at line 19 of file SimpleAssocRuleWriter.hpp. |
|
Definition at line 17 of file SimpleAssocRuleWriter.hpp. |
|
Definition at line 20 of file FileReprBase.hpp. |
|
Definition at line 21 of file SimpleAssocRuleWriter.hpp. |
|
Definition at line 23 of file BufferedNormalOutput.hpp. |
|
Definition at line 31 of file BufferedOutput.hpp. References BufferedOutput< FR >::buffer, and BufferedOutput< FR >::buffer_size. |
|
Definition at line 28 of file DecoderBase.hpp. |
|
Reimplemented from FileReprBase. Definition at line 63 of file StreamRepr.hpp. References StreamRepr::output_stream. |
|
Reimplemented from BufferedNormalOutput< StreamRepr >. Definition at line 20 of file SimpleDFDecoder.hpp. |
|
Definition at line 30 of file OutputBase.hpp. |
|
remove all items form the stack
Definition at line 92 of file OutputBase.hpp. |
|
Reimplemented from OutputBase< StreamRepr >. Definition at line 50 of file SimpleDFDecoder.hpp. References SimpleDFDecoder< O >::decoded_set. |
|
Reimplemented from OutputBase< StreamRepr >. Definition at line 25 of file SimpleDFDecoder.hpp. References SimpleDFDecoder< O >::decoded_set. |
|
Reimplemented from OutputBase< StreamRepr >. Definition at line 45 of file SimpleDFDecoder.hpp. References SimpleDFDecoder< O >::last_support, and SimpleDFDecoder< O >::pushItemWithWrite(). |
|
Reimplemented from OutputBase< StreamRepr >. Definition at line 39 of file SimpleDFDecoder.hpp. References SimpleDFDecoder< O >::pushItem(), and SimpleDFDecoder< O >::write(). |
|
Reimplemented from FileReprBase. Definition at line 68 of file StreamRepr.hpp. References StreamRepr::input_stream. |
|
Reimplemented from FileReprBase. Definition at line 58 of file StreamRepr.hpp. References StreamRepr::input_stream. |
|
Reimplemented from DecoderBase< BufferedNormalOutput< StreamRepr > >. Definition at line 26 of file SimpleDecoderBase.hpp. |
|
Definition at line 24 of file SimpleDecoderBase.hpp. |
|
Definition at line 17 of file SimpleDFDecoder.hpp. |
|
Reimplemented from OutputBase< StreamRepr >. Definition at line 30 of file SimpleDFDecoder.hpp. References SimpleDFDecoder< O >::decoded_set, and SimpleDFDecoder< O >::last_support. |
|
Definition at line 25 of file SimpleAssocRuleWriter.hpp. References SimpleDecoderBase< BufferedNormalOutput< StreamRepr > >::code_inverse, and StreamRepr::output_stream. |
|
Reimplemented from OutputBase< StreamRepr >. Definition at line 33 of file BufferedNormalOutput.hpp. References BufferedOutput< FR >::buffer_size, Formatter::ItemsetToStringBack(), and Formatter::SupportToStringBack(). |
|
|
|
Reimplemented from FileReprBase. Definition at line 72 of file StreamRepr.hpp. References StreamRepr::output_stream. |
|
The buffer.
Definition at line 47 of file BufferedOutput.hpp. |
|
The size of the buffer.
Definition at line 45 of file BufferedOutput.hpp. |
|
The inverse of code vector. code_inverse[i] stores the original code of the item, whose new code is i. Definition at line 39 of file SimpleDecoderBase.hpp. Referenced by writeAssocRule(). |
|
the low-level buffer
Definition at line 89 of file FileReprBase.hpp. Referenced by FDRepr::FDRepr(), FILERepr::FILERepr(), FileReprBase::FileReprBase(), FDRepr::flush(), StreamRepr::StreamRepr(), FDRepr::writeToFile(), and FileReprBase::~FileReprBase(). |
|
the size of the lowest level buffer
Definition at line 91 of file FileReprBase.hpp. Referenced by FDRepr::FDRepr(), and FDRepr::flush(). |
|
stream to read
Definition at line 78 of file StreamRepr.hpp. Referenced by SimpleTransactionReader::getNextItem(), SimpleTransactionReader::nextTransactionBIS(), SimpleTransactionReader::nextTransactionUAC(), StreamRepr::readFromFile(), StreamRepr::rewind(), StreamRepr::StreamRepr(), and StreamRepr::~StreamRepr(). |
|
operating mode
Definition at line 93 of file FileReprBase.hpp. Referenced by SimpleOutputTester::doTest(), FileReprBase::FileReprBase(), and FDRepr::~FDRepr(). |
|
steam to write
Definition at line 80 of file StreamRepr.hpp. Referenced by StreamRepr::flush(), StreamRepr::StreamRepr(), writeAssocRule(), SimpleOutput::writeItemsetAndCounter(), StreamRepr::writeToFile(), and StreamRepr::~StreamRepr(). |