A one-pole DSP filter. More...
#include <ignition/math/Filter.hh>
Public Member Functions | |
OnePole ()=default | |
Constructor. More... | |
OnePole (double _fc, double _fs) | |
Constructor. More... | |
virtual void | Fc (double _fc, double _fs) |
Set the cutoff frequency and sample rate. More... | |
const T & | Process (const T &_x) |
Update the filter's output. More... | |
Public Member Functions inherited from ignition::math::Filter< T > | |
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... | |
Protected Attributes | |
double | a0 = 0 |
Input gain control. More... | |
double | b1 = 0 |
Gain of the feedback. More... | |
Protected Attributes inherited from ignition::math::Filter< T > | |
T | y0 {} |
Output. More... | |
A one-pole DSP filter.
|
default |
Constructor.
|
inline |
Constructor.
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
|
inlinevirtual |
Set the cutoff frequency and sample rate.
[in] | _fc | Cutoff frequency. |
[in] | _fs | Sample rate. |
Implements ignition::math::Filter< T >.
Referenced by ignition::math::OnePole< math::Quaterniond >::OnePole().
|
inline |
Update the filter's output.
[in] _x Input value.
|
protected |
Input gain control.
Referenced by ignition::math::OnePole< math::Quaterniond >::Fc(), and ignition::math::OnePole< math::Quaterniond >::Process().
|
protected |
Gain of the feedback.
Referenced by ignition::math::OnePole< math::Quaterniond >::Fc(), and ignition::math::OnePole< math::Quaterniond >::Process().