Marsyas  0.5.0-beta1
Public Member Functions
RealvecSource Class Reference

#include <RealvecSource.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
void myProcess (realvec &in, realvec &out)
 Processes data.
 RealvecSource (std::string name)
 RealvecSource (const RealvecSource &a)
 ~RealvecSource ()

Detailed Description

A RealvecSource takes a realvec and uses it as a source for your MarSystem network. It is similar to a SoundFileSource except that as taking a sound file as the input, it takes a realvec that you create as input.

It is very useful for getting numbers from external sources into your Marsystems, for example when reading external files of data.

It is also very useful when writing tests for your Marsystems. You can load up a realvec with data, and then run it through a Marsystem to test it.

When you feed in a realvec, the rows turn into observations and the columns turn into samples.

Definition at line 48 of file RealvecSource.h.

Constructor & Destructor Documentation

RealvecSource ( std::string  name)

Definition at line 25 of file RealvecSource.cpp.

RealvecSource ( const RealvecSource a)

Definition at line 31 of file RealvecSource.cpp.

Definition at line 38 of file RealvecSource.cpp.

Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 44 of file RealvecSource.cpp.

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

Processes data.

inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 86 of file RealvecSource.cpp.

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