okapi::Filter class

Derived classes

template<std::size_t n>
class AverageFilter
A filter which returns the average of a list of values.
class ComposableFilter
class DemaFilter
class EKFFilter
class EmaFilter
template<std::size_t n>
class MedianFilter
A filter which returns the median value of list of values.
class PassthroughFilter

Constructors, destructors, conversion operators

~Filter() virtual

Public functions

auto filter(double ireading) -> double pure virtual
Filters a value, like a sensor reading.
auto getOutput() const -> double pure virtual
Returns the previous output from filter.

Function documentation

double okapi::Filter::filter(double ireading) pure virtual

Filters a value, like a sensor reading.

Parameters
ireading new measurement
Returns filtered result

double okapi::Filter::getOutput() const pure virtual

Returns the previous output from filter.

Returns the previous output from filter