Marsyas  0.5.0-beta1
Public Member Functions
DTW Class Reference

Calculate Alignment from a SimilarityMatrix at input. More...

#include <DTW.h>

Inherits MarSystem.

Public Member Functions

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

Detailed Description

Calculate Alignment from a SimilarityMatrix at input.

as input format is expected: in combination with the sizes control - which has to be of size n where n is the number of sequences, and each element of the control has to be the number of vector-elements in the nth sequence - the first 1/n part of each row containing the elements of the vectors of the first sequence the second 1/n part containing the elements of the vectors of the second, and so on up to nth part containing the elements of the vectors of the nth sequence.

Controls:

CAUTION: since the number of elements of the sizes control is assumed to be the number of seqences to be compared, the dimensionality of the vectors is assumed to be "numberOfInputRows(i.e. Observations) divided by numberOfSequences(i.e. length of the sizes control)" since all vectors have to be of the same dimensionality. e.g. the standard case of two sequences would need to have the sizes control of length 2 with sizes(0) being the length of the fist sequence, sizes(1) being the length of the second; and each input observation (i.e. row) containing two input vectors: the first half of the row containing the elements of the vectors of the first sequence the second half of the row containing the elements of the vectors of the second sequence

Output size: When the control mode is set as normal, output size should be inObservations+inSamples. When the contorl mode is set as OnePass, output size should be 3*inSamples.

Definition at line 61 of file DTW.h.


Constructor & Destructor Documentation

DTW ( std::string  name)

Definition at line 6 of file DTW.cpp.

DTW ( const DTW a)

Definition at line 11 of file DTW.cpp.

~DTW ( )

Definition at line 22 of file DTW.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 27 of file DTW.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 106 of file DTW.cpp.


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