OnePole Class Reference
[Processing]

Simple one-pole digital filter. More...

#include <OnePole.h>

Inherits Marsyas::MarSystem.


Private Attributes

mrs_real alpha_
 Cache for the alpha value.
mrs_real gain_
 Cache for the gain value.
realvec previousOutputSamples_
 Internal memory for the last samples of the previous observed slice.


Detailed Description

Simple one-pole digital filter.

OnePole implements the digital filter described by equation

\[ y(t) = (1 - \alpha) x(t) + \alpha y(t - 1) \]

This filter has one pole at $ z = \alpha $. If $ \alpha > 0 $, the filter has a low-pass characteristic, the closer to 1 the smaller the pass band. If $ \alpha < 0 $, it has a high-pass characteristic, the closer to -1, the smaller the pass band.

Note that the coefficient of $ x(t) $ is set to $ (1-\alpha) $ to have unity gain for the DC component (both in the low pass and high pass case) as a sort of normalization.

Controls:

See also:
Filter

Definition at line 50 of file OnePole.h.


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