Marsyas  0.5.0-beta1
Public Member Functions
CsvFileSource Class Reference

Reads CSV (comma-separated values) text files. More...

#include <CsvFileSource.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
 CsvFileSource (std::string name)
void getHeader (std::string filename)
void myProcess (realvec &in, realvec &out)
 Processes data.
 ~CsvFileSource ()

Detailed Description

Reads CSV (comma-separated values) text files.

Input file is assumed to begin with a header (the intended observation names, separated by commas). The rest of the file should consist of comma-separated values. This functions similarly to Inject, except that it reads from a file instead of from a control; this can be useful to add metadata (from a file) to improve the machine learning.

Controls:

Definition at line 47 of file CsvFileSource.h.


Constructor & Destructor Documentation

CsvFileSource ( std::string  name)

Definition at line 24 of file CsvFileSource.cpp.

Definition at line 37 of file CsvFileSource.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 55 of file CsvFileSource.cpp.

void getHeader ( std::string  filename)

Definition at line 63 of file CsvFileSource.cpp.

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

Processes data.

Parameters:
inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 137 of file CsvFileSource.cpp.


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