DownSampler Class Reference
[ProcessingBasic Processing]

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

#include <DownSampler.h>

Inherits Marsyas::MarSystem.


Public Member Functions

MarSystemclone () const
 DownSampler clone method.
 DownSampler (const DownSampler &a)
 DownSampler copy constructor.
 DownSampler (std::string name)
 DownSampler constructor.
 ~DownSampler ()
 DownSampler destructor.

Private Attributes

MarControlPtr ctrl_factor_
 MarControl pointer for the downsample factor.


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 ( const DownSampler a  ) 

DownSampler copy constructor.

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

Definition at line 35 of file DownSampler.cpp.

References DownSampler::ctrl_factor_.


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

Generated on Wed May 23 00:02:23 2012 for Marsyas by  doxygen 1.5.6