Marsyas
0.6.0-alpha
|
Writes slices to a file in (Weka) ARFF format. More...
#include <ArffFileSink.h>
Inherits MarSystem.
Public Member Functions | |
ArffFileSink (std::string name) | |
ArffFileSink constructor. | |
ArffFileSink (const ArffFileSink &a) | |
ArffFileSink copy constructor. | |
MarSystem * | clone () const |
Implementation of the MarSystem::clone() method. | |
void | myProcess (realvec &in, realvec &out) |
Implementation of the MarSystem::myProcess method. | |
~ArffFileSink () | |
ArffFileSink destructor. |
Writes slices to a file in (Weka) ARFF format.
ArffFileSink writes the input realvec data it receives to a file in ARFF format (Attribute-Relation File Format). The ARFF format is relatively easy and consists of a simple header, describing the observation channels (called 'attributes' in ARFF), and a straightforward data body.
ARFF files are typically used with the Weka machine learning software.
ArffFileSink is basically a simple rewrite of WekaSink. The problem with WekaSink is that it contains a fair amount of assumptions about the usage and purpose of the generated Weka files, which limits the flexibility of WekaSink. Fixing this in WekaSink without breaking backwards compatibility would be very hard and messy.
Controls:
Definition at line 55 of file ArffFileSink.h.
ArffFileSink | ( | std::string | name | ) |
ArffFileSink constructor.
Definition at line 36 of file ArffFileSink.cpp.
ArffFileSink | ( | const ArffFileSink & | a | ) |
ArffFileSink copy constructor.
All member MarControlPtr have to be explicitly reassigned in the copy constructor.
Definition at line 44 of file ArffFileSink.cpp.
~ArffFileSink | ( | ) |
ArffFileSink destructor.
Definition at line 58 of file ArffFileSink.cpp.
Implementation of the MarSystem::clone() method.
Implements MarSystem.
Definition at line 64 of file ArffFileSink.cpp.
Implementation of the MarSystem::myProcess method.
Implements MarSystem.
Definition at line 165 of file ArffFileSink.cpp.