|
#include <ArmarXCore/observers/filters/rtfilters/ButterworthFilter.h>
Public Member Functions | |
ButterworthFilter (double frequency, int sampleRate, PassType filterPassType, double resonance) | |
double | calculate () override |
RTFilterBasePtr | clone () const override |
void | setInitialValue (double value) |
double | update (const IceUtil::Time ×tamp, double newValue) override |
Public Member Functions inherited from RTFilterBase | |
double | getCurrentValue () const |
virtual void | reset () |
RTFilterBase (const RTFilterBase &other)=default | |
RTFilterBase (size_t historySize) | |
double | update (double deltaSec, double newValue) |
virtual | ~RTFilterBase () |
Protected Attributes | |
double | a1 |
double | a2 |
double | a3 |
double | b1 |
double | b2 |
double | c |
::armarx::PassType | filterPassType |
double | frequency |
std::vector< double > | inputHistory = std::vector<double>(2, 0.0) |
Array of input values, latest are in front. More... | |
double | newestValue |
std::vector< double > | outputHistory = std::vector<double>(3, 0.0) |
Array of output values, latest are in front. More... | |
double | resonance |
int | sampleRate |
Protected Attributes inherited from RTFilterBase | |
double | currentValue = 0.0 |
boost::circular_buffer< std::pair< IceUtil::Time, double > > | dataHistory |
Definition at line 34 of file ButterworthFilter.h.
ButterworthFilter | ( | double | frequency, |
int | sampleRate, | ||
PassType | filterPassType, | ||
double | resonance | ||
) |
|
overridevirtual |
Implements RTFilterBase.
Definition at line 89 of file ButterworthFilter.cpp.
|
overridevirtual |
Implements RTFilterBase.
Definition at line 70 of file ButterworthFilter.cpp.
void setInitialValue | ( | double | value | ) |
|
overridevirtual |
Reimplemented from RTFilterBase.
Definition at line 103 of file ButterworthFilter.cpp.
|
protected |
Definition at line 62 of file ButterworthFilter.h.
|
protected |
Definition at line 64 of file ButterworthFilter.h.
|
protected |
Definition at line 66 of file ButterworthFilter.h.
|
protected |
Definition at line 68 of file ButterworthFilter.h.
|
protected |
Definition at line 70 of file ButterworthFilter.h.
|
protected |
Definition at line 60 of file ButterworthFilter.h.
|
protected |
Definition at line 58 of file ButterworthFilter.h.
|
protected |
Definition at line 54 of file ButterworthFilter.h.
|
protected |
Array of input values, latest are in front.
Definition at line 47 of file ButterworthFilter.h.
|
protected |
Definition at line 45 of file ButterworthFilter.h.
|
protected |
Array of output values, latest are in front.
Definition at line 50 of file ButterworthFilter.h.
|
protected |
Definition at line 52 of file ButterworthFilter.h.
|
protected |
Definition at line 56 of file ButterworthFilter.h.