|
DMP_BBO library
|
Model parameters for the Locally Weighted Projection Regression (LWPR) function approximator. More...
#include <ModelParametersLWPR.hpp>


Public Member Functions | |
| ModelParametersLWPR (LWPR_Object *lwpr_object) | |
| Initializing constructor. More... | |
| std::string | toString (void) const |
| Returns a string representation of the object. More... | |
| ModelParameters * | clone (void) const |
| Return a pointer to a deep copy of the ModelParameters object. More... | |
| int | getExpectedInputDim (void) const |
| The expected dimensionality of the input data. More... | |
| void | getSelectableParameters (std::set< std::string > &selected_values_labels) const |
| Return all the names of the parameter types that can be selected. More... | |
| void | getParameterVectorMask (const std::set< std::string > selected_values_labels, Eigen::VectorXi &selected_mask) const |
| Get a mask for selecting parameters. More... | |
| void | getParameterVectorAll (Eigen::VectorXd &all_values) const |
| Return a vector that returns all available parameter values. More... | |
| int | getParameterVectorAllSize (void) const |
| Get the size of the parameter values vector when it contains all available parameter values. More... | |
| UnifiedModel * | toUnifiedModel (void) const |
| Convert these LWPR model parameters to unified model parameters. More... | |
Public Member Functions inherited from ModelParameters | |
| virtual int | getExpectedOutputDim (void) const |
| The expected dimensionality of the output data. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| Serialize class data members to boost archive. More... | |
Public Member Functions inherited from Parameterizable | |
| virtual | ~Parameterizable (void) |
| Destructor. | |
| virtual int | getParameterVectorSelectedSize (void) const |
| Get the size of the vector of selected parameters, as returned by getParameterVectorSelected(. More... | |
| virtual void | getParameterVectorSelected (Eigen::VectorXd &values, bool normalized=false) const |
| Get the values of the selected parameters in one vector. More... | |
| virtual void | getParameterVectorSelectedNormalized (Eigen::VectorXd &values) const |
| Get the normalized values of the selected parameters in one vector. More... | |
| void | getParameterVectorSelectedMinMax (Eigen::VectorXd &min, Eigen::VectorXd &max) const |
| Get the minimum and maximum of the selected parameters in one vector. More... | |
| void | getParameterVectorAllMinMax (Eigen::VectorXd &min, Eigen::VectorXd &max) const |
| Get the minimum and maximum values of the current parameter vector. More... | |
| void | getParameterVectorSelectedRanges (Eigen::VectorXd &ranges) const |
| Get the ranges of the selected parameters, i.e. More... | |
| virtual void | setParameterVectorSelected (const Eigen::VectorXd &values, bool normalized=false) |
| Set all the values of the selected parameters with one vector. More... | |
| virtual void | setParameterVectorSelectedNormalized (const Eigen::VectorXd &values) |
| Set all the values of the selected parameters with one vector of normalized values. More... | |
| virtual void | setSelectedParameters (const std::set< std::string > &selected_values_labels) |
| Determine which subset of parameters is represented in the vector returned by Parameterizable::getParameterVectorSelected. More... | |
| void | setSelectedParametersOne (std::string selected) |
| Set the parameters that are currently selected. More... | |
| void | setParameterVectorModifier (std::string modifier, bool new_value) |
| Turn certain modifiers on or off. More... | |
| void | setVectorLengthsPerDimension (const Eigen::VectorXi &lengths_per_dimension) |
| The vector (VectorXd) with parameter values can be split into different parts (as vector<VectorXd>; this function specifices the length of each sub-vector. More... | |
| Eigen::VectorXi | getVectorLengthsPerDimension (void) const |
| Get the specified length of each vector in each dimension. More... | |
| void | getParameterVectorSelected (std::vector< Eigen::VectorXd > &values, bool normalized=false) const |
| Get the values of the selected parameters in one vector. More... | |
| void | setParameterVectorSelected (const std::vector< Eigen::VectorXd > &values, bool normalized=false) |
| Set all the values of the selected parameters with a vector of vectors. More... | |
Protected Member Functions | |
| void | setParameterVectorAll (const Eigen::VectorXd &values) |
| Set all available parameter values with one vector. More... | |
Friends | |
| class | FunctionApproximatorLWPR |
| class | boost::serialization::access |
| Give boost serialization access to private members. More... | |
Model parameters for the Locally Weighted Projection Regression (LWPR) function approximator.
Definition at line 43 of file ModelParametersLWPR.hpp.
| ModelParametersLWPR | ( | LWPR_Object * | lwpr_object | ) |
Initializing constructor.
Initialize the LWPR model parameters with an LWPR object from the external library.
| [in] | lwpr_object | LWPR object from the external library |
Definition at line 50 of file ModelParametersLWPR.cpp.
|
virtual |
Returns a string representation of the object.
Implements ModelParameters.
Definition at line 88 of file ModelParametersLWPR.cpp.
|
virtual |
Return a pointer to a deep copy of the ModelParameters object.
Implements ModelParameters.
Definition at line 82 of file ModelParametersLWPR.cpp.
|
virtual |
The expected dimensionality of the input data.
Implements ModelParameters.
Definition at line 117 of file ModelParametersLWPR.cpp.
|
virtual |
Return all the names of the parameter types that can be selected.
| [out] | selected_values_labels | Names of the parameter types that can be selected |
Implements Parameterizable.
Definition at line 122 of file ModelParametersLWPR.cpp.
|
virtual |
Get a mask for selecting parameters.
| [in] | selected_values_labels | Labels of the selected parameter values |
| [out] | selected_mask | A mask indicating indices of selected parameters. 0 indicates not selected, >0 indicates selected. |
For instance, if the parameters consists of centers, widths and slopes the parameter values vector will be something like
centers widths slopes [ 100 110 120 10 10 10 0.4 0.7 0.4 ]
In this case, if selected_values_labels contains "centers" and "slopes", the mask will be:
centers widths slopes [ 1 1 1 0 0 0 3 3 3 ]
The '0' indicates that these parameters are not selected. The other ones have different numbers so that they may be discerned from one another (as required in Parameterizable::getParameterVectorSelectedMinMax for instance.
Implements Parameterizable.
Definition at line 134 of file ModelParametersLWPR.cpp.

|
virtual |
Return a vector that returns all available parameter values.
| [out] | values | All available parameter values in one vector. |
Implements Parameterizable.
Definition at line 169 of file ModelParametersLWPR.cpp.

|
inlinevirtual |
Get the size of the parameter values vector when it contains all available parameter values.
For instance, if the parameters consists of centers, widths and slopes the parameter values vector will be something like
centers widths slopes [ 100 110 120 10 10 10 0.4 0.7 0.4 ]
then getParameterVectorAllSize() will return 9
Implements Parameterizable.
Definition at line 68 of file ModelParametersLWPR.hpp.

|
virtual |
Convert these LWPR model parameters to unified model parameters.
Implements ModelParameters.
Definition at line 228 of file ModelParametersLWPR.cpp.
|
protectedvirtual |
Set all available parameter values with one vector.
| [in] | values | All available parameter values in one vector. |
Implements Parameterizable.
Definition at line 197 of file ModelParametersLWPR.cpp.

|
friend |
Give boost serialization access to private members.
Definition at line 99 of file ModelParametersLWPR.hpp.
1.8.11