Marsyas  0.5.0-beta1
Public Member Functions
Differentiator Class Reference

Calculate the difference of successive input samples. More...

#include <Differentiator.h>

Inherits MarSystem.

Public Member Functions

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

Detailed Description

Calculate the difference of successive input samples.

Simple MarSystem that calculates the differences of successive input samples in the given slices. For the first sample of a slice, the last sample of the previous slice is used.

This MarSystem has no extra controls.

See also:
SliceDelta

Definition at line 40 of file Differentiator.h.


Constructor & Destructor Documentation

Differentiator ( std::string  name)

Definition at line 25 of file Differentiator.cpp.

Definition at line 29 of file Differentiator.cpp.

Definition at line 34 of file Differentiator.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 39 of file Differentiator.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 59 of file Differentiator.cpp.


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