22#include <yarp/os/Value.h>
27namespace learningmachine {
35 std::ostringstream buffer;
54 if(config.find(
"scale").isFloat64() || config.find(
"scale").isInt32()) {
55 this->
setScale(1. / config.find(
"scale").asFloat64());
59 if(config.find(
"offset").isFloat64() || config.find(
"offset").isInt32()) {
60 this->
setOffset(config.find(
"offset").asFloat64());
The IScaler is a linear scaler based scaler.
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.
void setName(std::string name)
Set the name of this machine learning technique.
virtual void readBottle(yarp::os::Bottle &bot)
Unserializes a scaler from a bottle.
virtual bool configure(yarp::os::Searchable &config)
virtual void setOffset(double o)
Mutator for the offset.
virtual void setScale(double s)
Mutator for the scaling factor.
virtual bool configure(yarp::os::Searchable &config)
virtual void readBottle(yarp::os::Bottle &bot)
Unserializes a scaler from a bottle.
virtual void writeBottle(yarp::os::Bottle &bot)
Writes a serialization of the scaler into a bottle.
LinearScaler(double s=1, double o=0)
Constructor.
virtual std::string getInfo()
Asks the learning machine to return a string containing statistics on its operation so far.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.