$search
A mean filter which works on doubles. More...
#include <mean.h>
Public Member Functions | |
virtual bool | configure () |
Pure virtual function for the sub class to configure the filter This function must be implemented in the derived class. | |
MeanFilter () | |
Construct the filter with the expected width and height. | |
virtual bool | update (const T &data_in, T &data_out) |
Update the filter and return the data seperately. | |
~MeanFilter () | |
Destructor to clean up. | |
Protected Attributes | |
boost::scoped_ptr < RealtimeCircularBuffer< T > > | data_storage_ |
Storage for data between updates. | |
uint32_t | last_updated_row_ |
The last row to have been updated by the filter. | |
uint32_t | number_of_observations_ |
Temporary storage. | |
T | temp_ |
A mean filter which works on doubles.
Definition at line 51 of file mean.h.
filters::MeanFilter< T >::MeanFilter | ( | ) | [inline] |
filters::MeanFilter< T >::~MeanFilter | ( | ) | [inline] |
bool filters::MeanFilter< T >::configure | ( | ) | [inline, virtual] |
Pure virtual function for the sub class to configure the filter This function must be implemented in the derived class.
Implements filters::FilterBase< T >.
bool filters::MeanFilter< T >::update | ( | const T & | data_in, | |
T & | data_out | |||
) | [inline, virtual] |
Update the filter and return the data seperately.
data_in | T array with length width | |
data_out | T array with length width |
Implements filters::FilterBase< T >.
boost::scoped_ptr<RealtimeCircularBuffer<T > > filters::MeanFilter< T >::data_storage_ [protected] |
uint32_t filters::MeanFilter< T >::last_updated_row_ [protected] |
uint32_t filters::MeanFilter< T >::number_of_observations_ [protected] |
T filters::MeanFilter< T >::temp_ [protected] |