19#ifndef LM_STANDARDIZER__
20#define LM_STANDARDIZER__
25namespace learningmachine {
83 virtual void readBottle(yarp::os::Bottle& bot);
97 virtual void update(
double val);
107 virtual bool configure(yarp::os::Searchable& config);
The IScaler is a linear scaler based scaler.
A class that implements standardization as a preprocessing step.
virtual double getDesiredStd()
Accessor for the desired standard deviation.
double runningStd
Running standard deviation based on the samples seen so far.
double mean
Desired mean for the output distribution.
double squaredErrors
Temporary variable that counts the sum of the squared errors.
virtual void readBottle(yarp::os::Bottle &bot)
Unserializes a scaler from a bottle.
virtual std::string getInfo()
Asks the learning machine to return a string containing statistics on its operation so far.
virtual void writeBottle(yarp::os::Bottle &bot)
Writes a serialization of the scaler into a bottle.
virtual void setDesiredStd(double s)
Mutator for the desired standard deviation.
virtual bool configure(yarp::os::Searchable &config)
double std
Desired standard deviation for the output distribution.
int noSamples
The number of samples that have been received so far.
virtual void update(double val)
Feeds a single sample into the scaler, so that it can use this sample to update the offset and scale.
Standardizer * clone()
Asks the scaler to return a new object of its type.
virtual void setDesiredMean(double m)
Mutator for the desired mean.
double runningMean
Running mean based on the samples seen so far.
virtual double getDesiredMean()
Accessor for the desired mean.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.