SoftFilters
0.1.0
Arduino framework and library of software data filters.
|
An adaptive normalization filter. More...
#include <SoftFilters.h>
Public Member Functions | |
virtual bool | update (void const *const input) override |
Internally update the filter output based on the given input. More... | |
![]() | |
bool | push (void const *const input, void *const output) |
Push a new data through the filter. More... | |
Private Attributes | |
VAL_T | maximum |
VAL_T | minimum |
VAL_T | in_val |
bool | seen_first |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
double | out_val |
Internally managed storage of the output value. | |
An adaptive normalization filter.
It outputs a double-precision floating point number with value between 0 to 1, normalized against the range of all previous input to this filter.
|
inlineoverridevirtual |
Internally update the filter output based on the given input.
This method behaves similarly to the public Filter::push method, but without copying the output to the client memory. This method is for internal workings of the filter framework.
Implements Filter.