|
INTERNAL_T | get_sum () |
|
virtual bool | refresh (IN_T const *const new_val, IN_T const *const old_val, OUT_T &output) override |
| Refresh the output value given the new value added to the cache and the old value removed from the cache. More...
|
|
virtual bool | update (void const *const input) override |
| Internally update the filter output based on the given input. More...
|
|
size_t | get_capacity () |
|
size_t | get_size () |
|
virtual void const *const | get_output_val_ptr () final |
| Push a new data through the filter. More...
|
|
virtual void | copy_to_client (void *const output) final |
| Copy the output to client memory.
|
|
template<typename IN_T, typename OUT_T, typename INTERNAL_T = double>
class MovingAverageFilter< IN_T, OUT_T, INTERNAL_T >
A filter that outputs the average of a moving window.
- Template Parameters
-
IN_T | Input data type. |
OUT_T | Output data type. |
INTERNAL_T | The type used for internal processing. Defaults to double . Any input is first cast to the internal type for processing, whose result is then cast to the output type. |
template<typename IN_T , typename OUT_T , typename INTERNAL_T = double>
virtual bool MovingAverageFilter< IN_T, OUT_T, INTERNAL_T >::refresh |
( |
IN_T const *const |
new_val, |
|
|
IN_T const *const |
old_val, |
|
|
OUT_T & |
output |
|
) |
| |
|
inlineoverrideprotectedvirtual |