|
Marsyas
0.6.0-alpha
|
Reads CSV (comma-separated values) text files. More...
#include <CsvFileSource.h>
Inherits MarSystem.
Public Member Functions | |
| MarSystem * | clone () const |
| CsvFileSource (std::string name) | |
| void | getHeader (std::string filename) |
| void | myProcess (realvec &in, realvec &out) |
| Processes data. | |
| ~CsvFileSource () | |
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.
| CsvFileSource | ( | std::string | name | ) |
Definition at line 24 of file CsvFileSource.cpp.
| ~CsvFileSource | ( | ) |
Definition at line 37 of file CsvFileSource.cpp.
Implements MarSystem.
Definition at line 55 of file CsvFileSource.cpp.
| void getHeader | ( | std::string | filename | ) |
Definition at line 63 of file CsvFileSource.cpp.
Processes data.
| in | Input data to read. |
| out | Output data to write. |
Implement this method in subclass to define specific data processing.
Implements MarSystem.
Definition at line 137 of file CsvFileSource.cpp.
1.7.6.1