APM:Libraries
|
#include <FilterWithBuffer.h>
Public Member Functions | |
FilterWithBuffer () | |
virtual T | apply (T sample) |
virtual void | reset () |
uint8_t | get_filter_size () const |
T | get_sample (uint8_t i) const |
Protected Attributes | |
T | samples [FILTER_SIZE] |
uint8_t | sample_index |
Definition at line 27 of file FilterWithBuffer.h.
FilterWithBuffer< T, FILTER_SIZE >::FilterWithBuffer | ( | ) |
Definition at line 82 of file FilterWithBuffer.h.
|
virtual |
Implements Filter< T >.
Reimplemented in AverageIntegralFilter< T, U, FILTER_SIZE >, AverageIntegralFilter< int32_t, int32_t, 10 >, AverageFilter< T, U, FILTER_SIZE >, AverageFilter< float, float, 5 >, AverageFilter< int32_t, int32_t, FILTER_SIZE >, ModeFilter< T, FILTER_SIZE >, and ModeFilter< float, 5 >.
Definition at line 104 of file FilterWithBuffer.h.
Referenced by AverageFilter< int32_t, int32_t, FILTER_SIZE >::apply(), AverageIntegralFilter< int32_t, int32_t, 10 >::apply(), and DerivativeFilter< float, 7 >::update().
|
inline |
Definition at line 40 of file FilterWithBuffer.h.
|
inline |
Definition at line 44 of file FilterWithBuffer.h.
|
virtual |
Implements Filter< T >.
Reimplemented in DerivativeFilter< T, FILTER_SIZE >, DerivativeFilter< float, 7 >, AverageFilter< T, U, FILTER_SIZE >, AverageFilter< float, float, 5 >, and AverageFilter< int32_t, int32_t, FILTER_SIZE >.
Definition at line 91 of file FilterWithBuffer.h.
Referenced by FilterWithBuffer< float, FILTER_SIZE >::FilterWithBuffer(), AverageFilter< int32_t, int32_t, FILTER_SIZE >::reset(), and DerivativeFilter< float, 7 >::reset().
|
protected |
Definition at line 50 of file FilterWithBuffer.h.
Referenced by FilterWithBuffer< float, FILTER_SIZE >::apply(), AverageIntegralFilter< int32_t, int32_t, 10 >::apply(), and FilterWithBuffer< float, FILTER_SIZE >::reset().
|
protected |
Definition at line 49 of file FilterWithBuffer.h.
Referenced by FilterWithBuffer< float, FILTER_SIZE >::apply(), AverageIntegralFilter< int32_t, int32_t, 10 >::apply(), FilterWithBuffer< float, FILTER_SIZE >::get_sample(), and FilterWithBuffer< float, FILTER_SIZE >::reset().