Marsyas  0.5.0-beta1
Public Member Functions
Centroid Class Reference

Centroid of observations within each sample. More...

#include <Centroid.h>

Inherits MarSystem.

Public Member Functions

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

Detailed Description

Centroid of observations within each sample.

Centroid computes the centroid of the observations for each time sample. The center is defined as the normalized first moment (center of gravity) of the observation vector.

Definition at line 37 of file Centroid.h.


Constructor & Destructor Documentation

Centroid ( std::string  name)

Definition at line 26 of file Centroid.cpp.

~Centroid ( )

Definition at line 32 of file Centroid.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 37 of file Centroid.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 55 of file Centroid.cpp.


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