A class that implements preprocessing based on a fixed range of outputs to a fixed range of outputs.
More...
#include <FixedRangeScaler.h>
|
| | FixedRangeScaler (double li=-1., double ui=1., double lo=-1., double uo=1.) |
| | Constructor.
|
| |
| virtual std::string | getInfo () |
| | Asks the learning machine to return a string containing statistics on its operation so far.
|
| |
| virtual bool | configure (yarp::os::Searchable &config) |
| |
| FixedRangeScaler * | clone () |
| | Asks the scaler to return a new object of its type.
|
| |
| virtual double | getLowerBoundOut () |
| | Accessor for the desired lower bound.
|
| |
| virtual void | setLowerBoundOut (double lo) |
| | Mutator for the desired lower bound.
|
| |
| virtual double | getUpperBoundOut () |
| | Accessor for the desired upper bound.
|
| |
| virtual void | setUpperBoundOut (double uo) |
| | Mutator for the desired upper bound.
|
| |
| virtual double | getLowerBoundIn () |
| | Accessor for the expected lower bound.
|
| |
| virtual void | setLowerBoundIn (double li) |
| | Mutator for the expected lower bound.
|
| |
| virtual double | getUpperBoundIn () |
| | Accessor for the expected upper bound.
|
| |
| virtual void | setUpperBoundIn (double ui) |
| | Mutator for the expected upper bound.
|
| |
| | IScaler (double s=1., double o=0.) |
| | Constructor.
|
| |
| virtual | ~IScaler () |
| | Destructor (empty).
|
| |
| 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.
|
| |
| virtual double | transform (double val) |
| | Transforms a single sample value according to the state of the scaler.
|
| |
| virtual double | unTransform (double val) |
| | Untransforms a single sample value according to the state of the scaler.
|
| |
| std::string | getName () const |
| | Retrieve the name of this scaler.
|
| |
| void | setName (std::string name) |
| | Set the name of this machine learning technique.
|
| |
| virtual void | setUpdateEnabled (bool u) |
| | Mutator for the update state.
|
| |
| virtual bool | getUpdateEnabled () |
| | Accessor for the update state.
|
| |
| virtual std::string | toString () |
| | Asks the scaler to return a string serialization.
|
| |
| virtual bool | fromString (const std::string &str) |
| | Asks the scaler to initialize from a string serialization.
|
| |
|
| void | updateScales () |
| | Updates the scale and offset according to the specified expected and desired ranges.
|
| |
| 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.
|
| |
|
| double | lowerBoundIn |
| | The expected lower bound in the sample values.
|
| |
| double | upperBoundIn |
| | The expected upper bound in the sample values.
|
| |
| double | lowerBoundOut |
| | The desired lower bound for the output range.
|
| |
| double | upperBoundOut |
| | The desired upper bound for the output range.
|
| |
| double | offset |
| | The offset for the linear transformation.
|
| |
| double | scale |
| | The scale for the linear transformation.
|
| |
| std::string | name |
| | The name of this type of scaler.
|
| |
| bool | updateEnabled |
| | Boolean indicating whether the scaler has to update each sample.
|
| |
A class that implements preprocessing based on a fixed range of outputs to a fixed range of outputs.
- See also
- iCub::learningmachine::IScaler
- Author
- Arjan Gijsberts
Definition at line 39 of file FixedRangeScaler.h.
◆ FixedRangeScaler()
| iCub::learningmachine::FixedRangeScaler::FixedRangeScaler |
( |
double |
li = -1., |
|
|
double |
ui = 1., |
|
|
double |
lo = -1., |
|
|
double |
uo = 1. |
|
) |
| |
Constructor.
- Parameters
-
| li | the initial lower input bound |
| ui | the initial upper input bound |
| lo | the initial lower output bound |
| uo | the initial upper output bound |
Definition at line 32 of file FixedRangeScaler.cpp.
◆ clone()
◆ configure()
| bool iCub::learningmachine::FixedRangeScaler::configure |
( |
yarp::os::Searchable & |
config | ) |
|
|
virtual |
◆ getInfo()
| std::string iCub::learningmachine::FixedRangeScaler::getInfo |
( |
| ) |
|
|
virtual |
◆ getLowerBoundIn()
| virtual double iCub::learningmachine::FixedRangeScaler::getLowerBoundIn |
( |
| ) |
|
|
inlinevirtual |
◆ getLowerBoundOut()
| virtual double iCub::learningmachine::FixedRangeScaler::getLowerBoundOut |
( |
| ) |
|
|
inlinevirtual |
◆ getUpperBoundIn()
| virtual double iCub::learningmachine::FixedRangeScaler::getUpperBoundIn |
( |
| ) |
|
|
inlinevirtual |
◆ getUpperBoundOut()
| virtual double iCub::learningmachine::FixedRangeScaler::getUpperBoundOut |
( |
| ) |
|
|
inlinevirtual |
◆ readBottle()
| void iCub::learningmachine::FixedRangeScaler::readBottle |
( |
yarp::os::Bottle & |
bot | ) |
|
|
protectedvirtual |
◆ setLowerBoundIn()
| virtual void iCub::learningmachine::FixedRangeScaler::setLowerBoundIn |
( |
double |
li | ) |
|
|
inlinevirtual |
◆ setLowerBoundOut()
| virtual void iCub::learningmachine::FixedRangeScaler::setLowerBoundOut |
( |
double |
lo | ) |
|
|
inlinevirtual |
◆ setUpperBoundIn()
| virtual void iCub::learningmachine::FixedRangeScaler::setUpperBoundIn |
( |
double |
ui | ) |
|
|
inlinevirtual |
◆ setUpperBoundOut()
| virtual void iCub::learningmachine::FixedRangeScaler::setUpperBoundOut |
( |
double |
uo | ) |
|
|
inlinevirtual |
◆ updateScales()
| void iCub::learningmachine::FixedRangeScaler::updateScales |
( |
| ) |
|
|
protected |
Updates the scale and offset according to the specified expected and desired ranges.
Definition at line 38 of file FixedRangeScaler.cpp.
◆ writeBottle()
| void iCub::learningmachine::FixedRangeScaler::writeBottle |
( |
yarp::os::Bottle & |
bot | ) |
|
|
protectedvirtual |
◆ lowerBoundIn
| double iCub::learningmachine::FixedRangeScaler::lowerBoundIn |
|
protected |
◆ lowerBoundOut
| double iCub::learningmachine::FixedRangeScaler::lowerBoundOut |
|
protected |
◆ upperBoundIn
| double iCub::learningmachine::FixedRangeScaler::upperBoundIn |
|
protected |
◆ upperBoundOut
| double iCub::learningmachine::FixedRangeScaler::upperBoundOut |
|
protected |
The documentation for this class was generated from the following files: