chrono::utils::ChRunningAverage Class Reference


Moving average filter for smoothing running data.

#include <ChFilters.h>

Public Member Functions

 ChRunningAverage (int n)
 Construct a running moving average filter (backward). More...
double Add (double val)
 Insert the specified value and return the current moving average.
double GetStdDev () const
 Return the standard deviation of data in current filter span.
void Reset ()
 Reset the filter.

Constructor & Destructor Documentation

◆ ChRunningAverage()

chrono::utils::ChRunningAverage::ChRunningAverage ( int  n)

Construct a running moving average filter (backward).

The filter only uses previous data (as specified by the filter span)

nfilter span

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/utils/ChFilters.h
  • /builds/uwsbel/chrono/src/chrono/utils/ChFilters.cpp