DUNE: Uniform Navigational Environment  2.4.0
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)
 

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename T>
void DUNE::Math::MovingAverage< T >::clear ( void  )
inline
template<typename T>
unsigned DUNE::Math::MovingAverage< T >::sampleSize ( void  )
inline
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(), and Navigation::General::Alignment::Task::consume().

Collaboration diagram for DUNE::Math::MovingAverage< T >:
Collaboration graph