template<std::size_t n>
AverageFilter class
A filter which returns the average of a list of values.
Template parameters | |
---|---|
n | number of taps in the filter |
Contents
Base classes
- class Filter
Constructors, destructors, conversion operators
- AverageFilter() defaulted
- Averaging filter.
Public functions
Protected variables
Function documentation
template<std::size_t n>
double okapi:: AverageFilter<n>:: filter(const double ireading) override
Filters a value, like a sensor reading.
Parameters | |
---|---|
ireading | new measurement |
Returns | filtered result |
template<std::size_t n>
double okapi:: AverageFilter<n>:: getOutput() const override
Returns the previous output from filter.
Returns | the previous output from filter |
---|