argos::CRCLowPassFilter Class Reference

A simple infinite-impulse response filter for real-valued signals. More...

#include <signal_processing.h>

Public Member Functions

 CRCLowPassFilter (Real f_smoothing_factor)
 Class constructor. More...
 
Real Filter (Real f_input)
 Applies the filter to the given value. More...
 
void Reset ()
 Resets the filter. More...
 

Detailed Description

A simple infinite-impulse response filter for real-valued signals.

See also
http://en.wikipedia.org/wiki/Low-pass_filter#Simple_infinite_impulse_response_filter

Definition at line 66 of file signal_processing.h.

Constructor & Destructor Documentation

argos::CRCLowPassFilter::CRCLowPassFilter ( Real  f_smoothing_factor)

Class constructor.

Parameters
f_smoothing_factorThe smoothing factor of the RC flter.

Definition at line 40 of file signal_processing.cpp.

Member Function Documentation

Real argos::CRCLowPassFilter::Filter ( Real  f_input)

Applies the filter to the given value.

Parameters
f_inputThe new value of the signal to filter.
Returns
The filtered output of the signal to filter.

Definition at line 47 of file signal_processing.cpp.

void argos::CRCLowPassFilter::Reset ( )

Resets the filter.

Definition at line 61 of file signal_processing.cpp.