GaussianFilter Class Reference

The GaussianFilter class provides a filter implemtentation with gaussian weighted values for datafields of type float, int, long and double. More...

#include <ArmarXCore/observers/filters/GaussianFilter.h>

+ Inheritance diagram for GaussianFilter:

Public Member Functions

template<typename Type >
Type calcGaussianFilteredValue (const TimeVariantBaseMap &map) const
 
VariantBasePtr calculate (const Ice::Current &c=Ice::emptyCurrent) const override
 
 GaussianFilter (int filterSizeInMs=200, int windowSize=20)
 GaussianFilter. More...
 
StringFloatDictionary getProperties (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...
 
void setProperties (const StringFloatDictionary &newValues, const Ice::Current &c=Ice::emptyCurrent) override
 
- 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 TimeVariantBaseMapgetDataHistory () 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
 

Detailed Description

The GaussianFilter class provides a filter implemtentation with gaussian weighted values for datafields of type float, int, long and double.

Definition at line 42 of file GaussianFilter.h.

Constructor & Destructor Documentation

◆ GaussianFilter()

GaussianFilter ( int  filterSizeInMs = 200,
int  windowSize = 20 
)

GaussianFilter.

Parameters
filterSizeInMsWidth of the gauss function
windowSizesize of the filter window

Definition at line 30 of file GaussianFilter.cpp.

Member Function Documentation

◆ calcGaussianFilteredValue()

Type calcGaussianFilteredValue ( const TimeVariantBaseMap map) const
inline

Definition at line 58 of file GaussianFilter.h.

+ Here is the call graph for this function:

◆ calculate()

armarx::VariantBasePtr calculate ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 36 of file GaussianFilter.cpp.

◆ getProperties()

armarx::StringFloatDictionary getProperties ( const Ice::Current &  c = Ice::emptyCurrent) const
override

Definition at line 78 of file GaussianFilter.cpp.

+ Here is the call graph for this function:

◆ getSupportedTypes()

armarx::ParameterTypeList getSupportedTypes ( const Ice::Current &  c = Ice::emptyCurrent) const
override

This filter supports: Int, Long, Float, Double.

Returns
List of VariantTypes

Definition at line 67 of file GaussianFilter.cpp.

◆ setProperties()

void setProperties ( const StringFloatDictionary &  newValues,
const Ice::Current &  c = Ice::emptyCurrent 
)
override

Definition at line 85 of file GaussianFilter.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: