Marsyas
0.6.0-alpha
|
Simple one-pole digital filter. More...
#include <OnePole.h>
Inherits MarSystem.
Public Member Functions | |
MarSystem * | clone () const |
void | myProcess (realvec &in, realvec &out) |
Processes data. | |
OnePole (std::string name) | |
~OnePole () |
Simple one-pole digital filter.
OnePole implements the digital filter described by equation
This filter has one pole at . If
, the filter has a low-pass characteristic, the closer to 1 the smaller the pass band. If
, it has a high-pass characteristic, the closer to -1, the smaller the pass band.
Note that the coefficient of is set to
to have unity gain for the DC component (both in the low pass and high pass case) as a sort of normalization.
Controls:
OnePole | ( | std::string | name | ) |
Definition at line 25 of file OnePole.cpp.
~OnePole | ( | ) |
Definition at line 31 of file OnePole.cpp.
Implements MarSystem.
Definition at line 37 of file OnePole.cpp.
Processes data.
in | Input data to read. |
out | Output data to write. |
Implement this method in subclass to define specific data processing.
Implements MarSystem.
Definition at line 67 of file OnePole.cpp.