#include <SmoothFilter.h>


Definition at line 48 of file SmoothFilter.h.
Public Member Functions | |
| smooth_filter (double smooth_factor=0.9) | |
| creates a new smooth_filter, setting the smooth_factor | |
| void | update (double incoming) |
| update the average with incoming | |
| int | age () |
| ages value without new value; equivalent to update(0.0); getValue(); | |
| int | reset () |
| resets value to 0.0 | |
| smooth_filter::smooth_filter | ( | double | smooth_factor = 0.9 |
) |
creates a new smooth_filter, setting the smooth_factor
| smooth_factor | the weight for the weighted moving average |
Definition at line 34 of file SmoothFilter.cc.
| void smooth_filter::update | ( | double | incoming | ) | [virtual] |
update the average with incoming

if the value is empty, just use the incoming value.
| incoming | the new value |
Reimplemented from GenericFilter.
Definition at line 48 of file SmoothFilter.cc.
References GenericFilter::value.
1.5.5