SoftFilters  0.1.0
Arduino framework and library of software data filters.
AdaptiveNormalizationFilter< VAL_T > Class Template Reference

An adaptive normalization filter. More...

#include <SoftFilters.h>

Inheritance diagram for AdaptiveNormalizationFilter< VAL_T >:
Collaboration diagram for AdaptiveNormalizationFilter< VAL_T >:

Public Member Functions

virtual bool update (void const *const input) override
 Internally update the filter output based on the given input. More...
 
- Public Member Functions inherited from Filter
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

- Protected Member Functions inherited from BaseFilter< VAL_T, double >
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.
 
- Protected Attributes inherited from BaseFilter< VAL_T, double >
double out_val
 Internally managed storage of the output value.
 

Detailed Description

template<typename VAL_T>
class AdaptiveNormalizationFilter< VAL_T >

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.

Member Function Documentation

◆ update()

template<typename VAL_T >
virtual bool AdaptiveNormalizationFilter< VAL_T >::update ( void const *const  input)
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.


The documentation for this class was generated from the following file: