Marsyas  0.5.0-beta1
Public Member Functions
DownSampler Class Reference

Downsample the input signal by dropping samples. More...

#include <DownSampler.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
 DownSampler clone method.
 DownSampler (std::string name)
 DownSampler constructor.
 DownSampler (const DownSampler &a)
 DownSampler copy constructor.
void myProcess (realvec &in, realvec &out)
 Processes data.
 ~DownSampler ()
 DownSampler destructor.

Detailed Description

Downsample the input signal by dropping samples.

Downsample the signal by an integer factor N. The output of the DownSampler will only reproduce the input samples at multiples of N.

Note that the DownSampler does not take care of any low pass filtering to avoid frequency aliasing.

Note that the DownSampler restarts counting and dropping samples for every given slice. Consequently, if the number of input samples is not divisible by the downsample factor, the sampling will be not uniform around the slice borders.

Controls:

Definition at line 47 of file DownSampler.h.


Constructor & Destructor Documentation

DownSampler ( std::string  name)

DownSampler constructor.

Definition at line 27 of file DownSampler.cpp.

DownSampler ( const DownSampler a)

DownSampler copy constructor.

All member MarControlPtr have to be explicitly reassigned in the copy constructor.

Definition at line 36 of file DownSampler.cpp.

DownSampler destructor.

Definition at line 32 of file DownSampler.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

DownSampler clone method.

Implements MarSystem.

Definition at line 44 of file DownSampler.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 78 of file DownSampler.cpp.


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