21#ifndef MIN_MAX_SCALER_H_
22#define MIN_MAX_SCALER_H_
25#include "MovingFilter.h"
74 virtual float put(
float value);
89 float _smoothedMinValue;
92 float _smoothedMaxValue;
95 unsigned int _nSamples;
98 float _currentValueStep;
The main Plaquette static class containing all the units.
Definition PqCore.h:60
static Engine & primary()
Returns the main instance of Plaquette.
Definition PqCore.cpp:31
Regularizes signal into [0,1] by rescaling it using the min and max values.
Definition MinMaxScaler.h:30
virtual void infiniteTimeWindow()
Sets time window to infinite.
Definition MinMaxScaler.cpp:45
virtual bool timeWindowIsInfinite() const
Returns true if time window is infinite.
Definition MinMaxScaler.cpp:55
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:71
virtual float timeWindow() const
Returns the time window (expressed in seconds).
Definition MinMaxScaler.cpp:53
virtual void reset()
Resets the moving filter.
Definition MinMaxScaler.cpp:59
Definition MovingFilter.h:29
float seconds() const
Returns engine time in seconds.
Definition PqCore.h:348
Engine * engine() const
Returns the engine that owns this unit.
Definition PqCore.h:382