19#ifndef LM_FIXEDRANGESCALER__
20#define LM_FIXEDRANGESCALER__
26namespace learningmachine {
75 virtual void readBottle(yarp::os::Bottle& bot);
86 FixedRangeScaler(
double li = -1.,
double ui = 1.,
double lo = -1.,
double uo = 1.);
96 virtual bool configure(yarp::os::Searchable& config);
116 this->lowerBoundOut = lo;
131 this->upperBoundOut = uo;
146 this->lowerBoundIn = li;
161 this->upperBoundIn = ui;
A class that implements preprocessing based on a fixed range of outputs to a fixed range of outputs.
virtual double getLowerBoundOut()
Accessor for the desired lower bound.
virtual double getLowerBoundIn()
Accessor for the expected lower bound.
double upperBoundIn
The expected upper bound in the sample values.
double upperBoundOut
The desired upper bound for the output range.
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 readBottle(yarp::os::Bottle &bot)
Unserializes a scaler from a bottle.
virtual void setUpperBoundOut(double uo)
Mutator for the desired upper bound.
virtual double getUpperBoundIn()
Accessor for the expected upper bound.
virtual void setUpperBoundIn(double ui)
Mutator for the expected upper bound.
virtual void setLowerBoundOut(double lo)
Mutator for the desired lower bound.
double lowerBoundIn
The expected lower bound in the sample values.
double lowerBoundOut
The desired lower bound for the output range.
FixedRangeScaler * clone()
Asks the scaler to return a new object of its type.
virtual double getUpperBoundOut()
Accessor for the desired upper bound.
void updateScales()
Updates the scale and offset according to the specified expected and desired ranges.
virtual void setLowerBoundIn(double li)
Mutator for the expected lower bound.
virtual bool configure(yarp::os::Searchable &config)
The IScaler is a linear scaler based scaler.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.