Implements data normalization (of all feature values) to interval [0,1]. More...
#include <data_scaler_to01.hpp>
Public Member Functions | |
Data_Scaler_to01 (const int dims=1) | |
Data_Scaler_to01 (const DATATYPE missing_val_code, const int dims) | |
Data_Scaler_to01 (const Data_Scaler_to01 &ds) | |
virtual int | learn_loops () const |
virtual bool | startFirstLoop () |
virtual bool | startNextLoop () |
virtual void | learn (const DATATYPE &value) |
virtual DATATYPE | scale (const DATATYPE &value) |
return the scaled value | |
virtual void | scale_inplace (DATATYPE &value) |
scale the value in place | |
virtual std::ostream & | print (std::ostream &os) const |
Protected Attributes | |
bool | first_learn |
DATATYPE | min |
DATATYPE | max |
bool | missing_values |
const DATATYPE | _missing_val_code |
long | count |
DATATYPE | sum |
DATATYPE | avg |
Implements data normalization (of all feature values) to interval [0,1].