Public Member Functions | Protected Attributes
sr_math_utils::filters::AlphaBetaFilter Class Reference

#include <sr_math_utils.hpp>

List of all members.

Public Member Functions

 AlphaBetaFilter (double alpha=0.85, double beta=0.05)
std::pair< double, double > compute (double xm, double timestamp)
 ~AlphaBetaFilter ()

Protected Attributes

double a
double b
double dt
double rk
double timestamp_1
std::pair< double, double > value_derivative
double vk
double vk_1
double xk
double xk_1

Detailed Description

An alpha beta filter as described on: http://en.wikipedia.org/wiki/Alpha_beta_filter

Definition at line 225 of file sr_math_utils.hpp.


Constructor & Destructor Documentation

sr_math_utils::filters::AlphaBetaFilter::AlphaBetaFilter ( double  alpha = 0.85,
double  beta = 0.05 
) [inline]

Definition at line 228 of file sr_math_utils.hpp.

Definition at line 234 of file sr_math_utils.hpp.


Member Function Documentation

std::pair<double, double> sr_math_utils::filters::AlphaBetaFilter::compute ( double  xm,
double  timestamp 
) [inline]

Computes the filtered value and its derivative.

Parameters:
xmthe newly received value.
timestampthe time at which the last measurement was made (in sec).
Returns:
a pair containing the filtered value first, then the derivative.

Definition at line 247 of file sr_math_utils.hpp.


Member Data Documentation

Definition at line 267 of file sr_math_utils.hpp.

Definition at line 267 of file sr_math_utils.hpp.

Definition at line 272 of file sr_math_utils.hpp.

Definition at line 271 of file sr_math_utils.hpp.

Definition at line 272 of file sr_math_utils.hpp.

std::pair<double, double> sr_math_utils::filters::AlphaBetaFilter::value_derivative [protected]

Definition at line 274 of file sr_math_utils.hpp.

Definition at line 271 of file sr_math_utils.hpp.

Definition at line 271 of file sr_math_utils.hpp.

Definition at line 271 of file sr_math_utils.hpp.

Definition at line 271 of file sr_math_utils.hpp.


The documentation for this class was generated from the following file:


sr_utilities
Author(s): Ugo Cupcic
autogenerated on Fri Aug 28 2015 13:08:44