21#ifndef MIN_MAX_SCALER_H_
22#define MIN_MAX_SCALER_H_
25#include "MovingFilter.h"
48 float minValue()
const {
return _smoothedMinValue; }
51 float maxValue()
const {
return _smoothedMaxValue; }
57 virtual void reset(
float estimatedMeanValue);
60 virtual void reset(
float estimatedMinValue,
float estimatedMaxValue);
68 virtual float put(
float value);
71 virtual float filter(
float value);
83 float _smoothedMinValue;
86 float _smoothedMaxValue;
90 float _alphaMinMax()
const;
91 float _alphaSmoothed(
bool finiteTimeWindow)
const;
92 float _smoothedTimeWindow(
bool finiteTimeWindow)
const;
The main Plaquette static class containing all the units.
Definition PqCore.h:63
static Engine & primary()
Returns the main instance of Plaquette.
Definition PqCore.cpp:30
Regularizes signal into [0,1] by rescaling it using the min and max values.
Definition MinMaxScaler.h:30
float maxValue() const
Returns the current max. value.
Definition MinMaxScaler.h:51
float minValue() const
Returns the current min. value.
Definition MinMaxScaler.h:48
virtual float put(float value)
Pushes value into the unit.
Definition MinMaxScaler.cpp:69
virtual float filter(float value)
Returns the filtered value (without calibrating).
Definition MinMaxScaler.cpp:90
virtual void reset()
Resets the moving filter.
Definition MinMaxScaler.cpp:41
Definition MovingFilter.h:39
virtual float timeWindow() const
Returns the time window (expressed in seconds).
Definition TimeWindowable.h:45
Engine * engine() const
Returns the engine that owns this unit.
Definition PqCore.h:420