PicoLowLevel
Loading...
Searching...
No Matches
ExpSmoothingFilter< T > Class Template Reference

Class for a exponential smoothing filter implementing the Filter interface. More...

#include <ExpSmoothingFilter.h>

Inheritance diagram for ExpSmoothingFilter< T >:
Collaboration diagram for ExpSmoothingFilter< T >:

Public Member Functions

 ExpSmoothingFilter (int a, int b)
 Constructor for the exponential smoothing filter.
 
filter (T value)
 Computes the filtered output using an exponential filter, giving the passed value a weight of a/b.
 

Detailed Description

template<typename T>
class ExpSmoothingFilter< T >

Class for a exponential smoothing filter implementing the Filter interface.

Template Parameters
Ttype of the variable to be filtered.

Constructor & Destructor Documentation

◆ ExpSmoothingFilter()

template<typename T >
ExpSmoothingFilter< T >::ExpSmoothingFilter ( int  a,
int  b 
)
inline

Constructor for the exponential smoothing filter.

The weight for the filter is given by the parameters a and b, representing the fraction a/b.

Parameters
aweight fraction numerator.
bweight fraction denominator.

Member Function Documentation

◆ filter()

template<typename T >
T ExpSmoothingFilter< T >::filter ( value)
inlinevirtual

Computes the filtered output using an exponential filter, giving the passed value a weight of a/b.

Parameters
valueto be filtered.
Returns
T filtered output.

Implements Filter< T >.


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