![]() |
TPIK
1.0
Task Priority Inverse Kinematics
|
#include <futils.h>
Public Member Functions | |
| FirstOrderFilter () | |
| void | Reset () |
| void | Init (const int dataSize, const double alpha) |
| std::vector< double > & | Filter (const std::vector< double > array) |
Public Attributes | |
| std::vector< double > | prevState_ |
| std::vector< double > | filteredData_ |
| bool | isRunning_ |
| bool | initialised_ |
| int | dataSize_ |
| double | alpha_ |
This function performs a simple 1D filtering over an array of data. The result is the output of the following function: y(i) = alpha * x(i) + ( 1 - alpha ) * y(i-1)
alpha is the 'b' output parameter of the 'ellip' MATLAB function: [b, a] = ellip(filterOrder, passbandRipple, stopbandAtt, radPerSample)
| array | |
| size | |
| alpha |
|
inline |
|
inline |
|
inline |
|
inline |
| double futils::FirstOrderFilter::alpha_ |
| int futils::FirstOrderFilter::dataSize_ |
| std::vector<double> futils::FirstOrderFilter::filteredData_ |
| bool futils::FirstOrderFilter::initialised_ |
| bool futils::FirstOrderFilter::isRunning_ |
| std::vector<double> futils::FirstOrderFilter::prevState_ |