Go to the documentation of this file.
50 b1 = 2.0 * (1.0 -
c *
c) *
a1;
60 b1 = 2.0 * (
c *
c - 1.0) *
a1;
97 this->outputHistory[2] = this->outputHistory[1];
98 this->outputHistory[1] = this->outputHistory[0];
99 this->outputHistory[0] = newOutput;
std::vector< double > outputHistory
Array of output values, latest are in front.
std::shared_ptr< RTFilterBase > RTFilterBasePtr
void setInitialValue(double value)
double calculate() override
double update(const IceUtil::Time ×tamp, double newValue) override
std::shared_ptr< Value > value()
::armarx::PassType filterPassType
RTFilterBasePtr clone() const override
std::vector< double > inputHistory
Array of input values, latest are in front.
ButterworthFilter(double frequency, int sampleRate, PassType filterPassType, double resonance)
The RTFilterBase class is the base class for all real time capable filters.
armarx::core::time::DateTime Time
double v(double t, double v0, double a0, double j)
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...