Marsyas
0.6.0-alpha
|
Running calculation (across slices) of the autocorrelation values. More...
#include <RunningAutocorrelation.h>
Inherits MarSystem.
Public Member Functions | |
MarSystem * | clone () const |
Implementation of the MarSystem::clone() method. | |
void | myProcess (realvec &in, realvec &out) |
Implementation of the MarSystem::myProcess method. | |
RunningAutocorrelation (std::string name) | |
RunningAutocorrelation constructor. | |
RunningAutocorrelation (const RunningAutocorrelation &a) | |
RunningAutocorrelation copy constructor. | |
~RunningAutocorrelation () | |
RunningAutocorrelation destructor. |
Running calculation (across slices) of the autocorrelation values.
This MarSystem calculates the autocorrelation function of the input signal defined by successive input slices. Unlike the AutoCorrelation MarSystem, the calculations are done across slice boundaries in a seamless fashion (RunningAutocorrelation keeps an internal buffer of the appropriate number of samples from previous slices to implement this feature). Calculations are done in time domain for time lags from 0 to a user defined maximum lag (in number of samples). Note that this assumes that the input slices are non overlapping slices.
The autocorrelation values are laid out in the output slice along the time/samples dimension from lag zero to the maximum lag. Multiple input observation channels are supported. For example, if there are two input channels and the maximum lag is 4, the output slice will have two rows and five (not four) columns:
with the autocorrelation of the first channel for lag
and
the autocorrelation of the second channel.
Controls:
Definition at line 72 of file RunningAutocorrelation.h.
RunningAutocorrelation | ( | std::string | name | ) |
RunningAutocorrelation constructor.
Add any specific controls needed by this MarSystem.
Definition at line 28 of file RunningAutocorrelation.cpp.
RunningAutocorrelation | ( | const RunningAutocorrelation & | a | ) |
RunningAutocorrelation copy constructor.
All member MarControlPtr have to be explicitly reassigned in the copy constructor.
Definition at line 35 of file RunningAutocorrelation.cpp.
RunningAutocorrelation destructor.
Definition at line 47 of file RunningAutocorrelation.cpp.
Implementation of the MarSystem::clone() method.
Implements MarSystem.
Definition at line 52 of file RunningAutocorrelation.cpp.
Implementation of the MarSystem::myProcess method.
Iterate over the observations and samples and do the processing.
Implements MarSystem.
Definition at line 145 of file RunningAutocorrelation.cpp.