A one-pole DSP filter.
More...
#include <ignition/math/Filter.hh>
|
| OnePole ()=default |
| Constructor. More...
|
|
| OnePole (double _fc, double _fs) |
| Constructor. More...
|
|
virtual void | Fc (double _fc, double _fs) override |
| Set the cutoff frequency and sample rate. More...
|
|
const T & | Process (const T &_x) |
| Update the filter's output. More...
|
|
virtual | ~Filter () |
| Destructor. More...
|
|
virtual void | Set (const T &_val) |
| Set the output of the filter. More...
|
|
virtual const T & | Value () const |
| Get the output of the filter. More...
|
|
template<class T>
class ignition::math::OnePole< T >
A one-pole DSP filter.
- See also
- http://www.earlevel.com/main/2012/12/15/a-one-pole-filter/
◆ OnePole() [1/2]
◆ OnePole() [2/2]
Constructor.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
◆ Fc()
virtual void Fc |
( |
double |
_fc, |
|
|
double |
_fs |
|
) |
| |
|
inlineoverridevirtual |
Set the cutoff frequency and sample rate.
- Parameters
-
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
Implements Filter< T >.
◆ Process()
const T& Process |
( |
const T & |
_x | ) |
|
|
inline |
Update the filter's output.
- Parameters
-
- Returns
- The filter's current output.
◆ a0
◆ b1
The documentation for this class was generated from the following file: