DUNE: Uniform Navigational Environment  2019.02.1
DUNE::Math::MovingAverage< T > Class Template Reference

Public Member Functions

 MovingAverage (unsigned window_size)
 
void clear (void)
 
update (const T &value)
 
mean (void)
 
stdev (void)
 
unsigned sampleSize (void)
 
unsigned windowSize (void)
 

Constructor & Destructor Documentation

template<typename T>
DUNE::Math::MovingAverage< T >::MovingAverage ( unsigned  window_size)
inline

Member Function Documentation

template<typename T>
T DUNE::Math::MovingAverage< T >::stdev ( void  )
inline

Extract standard deviation of the sample.

Returns
standard deviation value.

Referenced by Monitors::Collisions::Task::consume().

template<typename T>
unsigned DUNE::Math::MovingAverage< T >::windowSize ( void  )
inline

Know size of window.

Returns
size of the window.
Collaboration diagram for DUNE::Math::MovingAverage< T >:
Collaboration graph