TimeWindowAverageFilter Class Reference

This filters allows to filter with an unstable frequency by considering only the valus in a specified timewindow. More...

#include <ArmarXCore/observers/filters/rtfilters/TimeWindowAverageFilter.h>

+ Inheritance diagram for TimeWindowAverageFilter:

Public Member Functions

double calculate () override
 
RTFilterBasePtr clone () const override
 
 TimeWindowAverageFilter (IceUtil::Time timeWindowSize, double maxFrequency)
 
- Public Member Functions inherited from RTFilterBase
double getCurrentValue () const
 
virtual void reset ()
 
 RTFilterBase (const RTFilterBase &other)=default
 
 RTFilterBase (size_t historySize)
 
double update (double deltaSec, double newValue)
 
virtual double update (IceUtil::Time const &timestamp, double newValue)
 
virtual ~RTFilterBase ()
 

Additional Inherited Members

- Protected Attributes inherited from RTFilterBase
double currentValue = 0.0
 
boost::circular_buffer< std::pair< IceUtil::Time, double > > dataHistory
 

Detailed Description

This filters allows to filter with an unstable frequency by considering only the valus in a specified timewindow.

An average filter is applied to all values in the time window.

Definition at line 36 of file TimeWindowAverageFilter.h.

Constructor & Destructor Documentation

◆ TimeWindowAverageFilter()

TimeWindowAverageFilter ( IceUtil::Time  timeWindowSize,
double  maxFrequency 
)

Definition at line 29 of file TimeWindowAverageFilter.cpp.

Member Function Documentation

◆ calculate()

double calculate ( )
overridevirtual

Implements RTFilterBase.

Definition at line 35 of file TimeWindowAverageFilter.cpp.

◆ clone()

RTFilterBasePtr clone ( ) const
overridevirtual

Implements RTFilterBase.

Definition at line 70 of file TimeWindowAverageFilter.cpp.


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