|
The MaxFilter class provides a simple filter by calculating the average value of a window for datafields of type float, int and double. More...
#include <ArmarXCore/observers/filters/MinMaxFilter.h>
Public Member Functions | |
VariantBasePtr | calculate (const Ice::Current &c=Ice::emptyCurrent) const override |
ParameterTypeList | getSupportedTypes (const Ice::Current &c=Ice::emptyCurrent) const override |
This filter supports: Int, Long, Float, Double. More... | |
MaxFilter () | |
Public Member Functions inherited from DatafieldFilter | |
bool | checkTypeSupport (VariantTypeId variantType, const Ice::Current &c=Ice::emptyCurrent) const override |
Checks whether the given type is supported. More... | |
DatafieldFilter () | |
DatafieldFilter (DatafieldFilter const &filter) | |
const TimeVariantBaseMap & | getDataHistory () const |
armarx::StringFloatDictionary | getProperties (const Ice::Current &c=Ice::emptyCurrent) const override |
VariantBasePtr | getValue (const Ice::Current &c=Ice::emptyCurrent) const override |
Retrieves the current, filtered value. More... | |
void | setProperties (const armarx::StringFloatDictionary &newValues, const Ice::Current &c=Ice::emptyCurrent) override |
void | update (Ice::Long timestamp, const VariantBasePtr &value, const Ice::Current &c=Ice::emptyCurrent) override |
Adds the given value to the data map, erases old values if maximum size was reached, and calculates the new filtered value. More... | |
Additional Inherited Members | |
Protected Attributes inherited from DatafieldFilter | |
TimeVariantBaseMap | dataHistory |
std::mutex | historyMutex |
The MaxFilter class provides a simple filter by calculating the average value of a window for datafields of type float, int and double.
Definition at line 42 of file MinMaxFilter.h.
MaxFilter | ( | ) |
Definition at line 28 of file MinMaxFilter.cpp.
|
override |
Definition at line 32 of file MinMaxFilter.cpp.
|
override |
This filter supports: Int, Long, Float, Double.
Definition at line 63 of file MinMaxFilter.cpp.