1-order low-pass IIR filter.
Discrete time equation: y[k]=alpha*y[k-1]+(1-alpha)*x[k]
. With: x[k] input, y[k] output, alpha a parameter in [0,1]
#include <mrpt/math/filters.h>
Public Member Functions | |
LowPassFilter_IIR1 (double alpha=0.5, double y_k_minus_1=.0) | |
double | filter (double x) |
Processes one input sample, updates the filter state and return the filtered value. More... | |
double | getLastOutput () const |
Public Attributes | |
double | alpha |
See equation in LowPassFilter_IIR1. More... | |
Private Attributes | |
double | m_y_km1 |
mrpt::math::LowPassFilter_IIR1::LowPassFilter_IIR1 | ( | double | alpha = 0.5 , |
double | y_k_minus_1 = .0 |
||
) |
double mrpt::math::LowPassFilter_IIR1::filter | ( | double | x | ) |
Processes one input sample, updates the filter state and return the filtered value.
double mrpt::math::LowPassFilter_IIR1::getLastOutput | ( | ) | const |
double mrpt::math::LowPassFilter_IIR1::alpha |
See equation in LowPassFilter_IIR1.
Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Mon Oct 30 10:27:08 UTC 2017 |