Functions
filters Namespace Reference

Functions

template<typename T >
static const T & clamp (const T &a, const T &b, const T &c)
 
static double exponentialSmoothing (double current_raw_value, double last_smoothed_value, double alpha)
 

Function Documentation

template<typename T >
static const T& filters::clamp ( const T &  a,
const T &  b,
const T &  c 
)
inlinestatic

Clamp value a between b and c

Definition at line 45 of file filters.h.

static double filters::exponentialSmoothing ( double  current_raw_value,
double  last_smoothed_value,
double  alpha 
)
inlinestatic

Exponential smoothing filter. Alpha is between 0 and 1. Values closer to 0 weight the last smoothed value more heavily

Definition at line 52 of file filters.h.



control_toolbox
Author(s): Melonee Wise, Sachin Chitta, John Hsu
autogenerated on Mon Jun 10 2019 12:56:32