Exponential filter that smoothes values in the form: x_filter(t) = a * x_filter(t-1) + ( 1 - a ) * x_raw(t) where a = exp( - dt / T ).
More...
#include <MeasurementOperations.h>
|
| | ExponentialFilter (agx::Real samplingTime, agx::Real periodTime) |
| | Constructor for the Exponential filter.
|
| |
| void | filterValue (agx::Real inValue) override |
| | Filters the value from a given thing.
|
| |
| bool | setPeriodTime (agx::Real periodTime) |
| | Set the period time.
|
| |
| bool | setSamplingTime (agx::Real samplingTime) override |
| | Set sampling time.
|
| |
| | DataFilter (agx::Real samplingTime) |
| | Default constructor.
|
| |
| agx::Real | getFilteredValue () const |
| | Returns the current filtered value.
|
| |
| | Referenced () |
| | Default constructor.
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting.
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match.
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test.
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object.
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
Exponential filter that smoothes values in the form: x_filter(t) = a * x_filter(t-1) + ( 1 - a ) * x_raw(t) where a = exp( - dt / T ).
dt is the discrete sampling rate and T is the period time. https://en.wikipedia.org/wiki/Exponential_smoothing
Definition at line 64 of file MeasurementOperations.h.
◆ ExponentialFilter()
| agxControl::ExponentialFilter::ExponentialFilter |
( |
agx::Real |
samplingTime, |
|
|
agx::Real |
periodTime |
|
) |
| |
Constructor for the Exponential filter.
◆ ~ExponentialFilter()
| virtual agxControl::ExponentialFilter::~ExponentialFilter |
( |
| ) |
|
|
protectedvirtual |
◆ calculateConstant()
| void agxControl::ExponentialFilter::calculateConstant |
( |
| ) |
|
|
protected |
◆ filterValue()
| void agxControl::ExponentialFilter::filterValue |
( |
agx::Real |
inValue | ) |
|
|
overridevirtual |
◆ setPeriodTime()
| bool agxControl::ExponentialFilter::setPeriodTime |
( |
agx::Real |
periodTime | ) |
|
◆ setSamplingTime()
| bool agxControl::ExponentialFilter::setSamplingTime |
( |
agx::Real |
samplingTime | ) |
|
|
overridevirtual |
◆ m_a
◆ m_periodTime
| agx::Real agxControl::ExponentialFilter::m_periodTime |
|
protected |
The documentation for this class was generated from the following file: