#include <sr_math_utils.hpp>
|
| AlphaBetaFilter (double alpha=0.85, double beta=0.05) |
|
std::pair< double, double > | compute (double xm, double timestamp) |
|
An alpha beta filter as described on: http://en.wikipedia.org/wiki/Alpha_beta_filter
Definition at line 220 of file sr_math_utils.hpp.
sr_math_utils::filters::AlphaBetaFilter::AlphaBetaFilter |
( |
double |
alpha = 0.85 , |
|
|
double |
beta = 0.05 |
|
) |
| |
|
inlineexplicit |
std::pair<double, double> sr_math_utils::filters::AlphaBetaFilter::compute |
( |
double |
xm, |
|
|
double |
timestamp |
|
) |
| |
|
inline |
Computes the filtered value and its derivative.
- Parameters
-
xm | the newly received value. |
timestamp | the time at which the last measurement was made (in sec). |
- Returns
- a pair containing the filtered value first, then the derivative.
Definition at line 240 of file sr_math_utils.hpp.
double sr_math_utils::filters::AlphaBetaFilter::a |
|
protected |
double sr_math_utils::filters::AlphaBetaFilter::b |
|
protected |
double sr_math_utils::filters::AlphaBetaFilter::dt |
|
protected |
double sr_math_utils::filters::AlphaBetaFilter::rk |
|
protected |
double sr_math_utils::filters::AlphaBetaFilter::timestamp_1 |
|
protected |
std::pair<double, double> sr_math_utils::filters::AlphaBetaFilter::value_derivative |
|
protected |
double sr_math_utils::filters::AlphaBetaFilter::vk |
|
protected |
double sr_math_utils::filters::AlphaBetaFilter::vk_1 |
|
protected |
double sr_math_utils::filters::AlphaBetaFilter::xk |
|
protected |
double sr_math_utils::filters::AlphaBetaFilter::xk_1 |
|
protected |
The documentation for this class was generated from the following file: