Marsyas  0.5.0-beta1
Public Member Functions
ArffFileSink Class Reference

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.
MarSystemclone () const
 Implementation of the MarSystem::clone() method.
void myProcess (realvec &in, realvec &out)
 Implementation of the MarSystem::myProcess method.
 ~ArffFileSink ()
 ArffFileSink destructor.

Detailed Description

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.

See also:
WekaSink

Controls:

Definition at line 55 of file ArffFileSink.h.


Constructor & Destructor Documentation

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 destructor.

Definition at line 58 of file ArffFileSink.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implementation of the MarSystem::clone() method.

Implements MarSystem.

Definition at line 64 of file ArffFileSink.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Implementation of the MarSystem::myProcess method.

Implements MarSystem.

Definition at line 165 of file ArffFileSink.cpp.


The documentation for this class was generated from the following files: