|
DMP_BBO library
|
Meta-parameters for the Locally Weighted Regression (LWR) function approximator. More...
#include <MetaParametersLWR.hpp>


Public Member Functions | |
| MetaParametersLWR (int expected_input_dim, const std::vector< Eigen::VectorXd > ¢ers_per_dim, double intersection_height=0.5, double regularization=0.0, bool asymmetric_kernels=false) | |
| Constructor for the algorithmic meta-parameters of the LWR function approximator. More... | |
| MetaParametersLWR (int expected_input_dim, const Eigen::VectorXi &n_basis_functions_per_dim, double intersection_height=0.5, double regularization=0.0, bool asymmetric_kernels=false) | |
| Constructor for the algorithmic meta-parameters of the LWR function approximator. More... | |
| MetaParametersLWR (int expected_input_dim, int n_basis_functions=10, double intersection_height=0.5, double regularization=0.0, bool asymmetric_kernels=false) | |
| Constructor for the algorithmic meta-parameters of the LWR function approximator. More... | |
| void | getCentersAndWidths (const Eigen::VectorXd &min, const Eigen::VectorXd &max, Eigen::MatrixXd ¢ers, Eigen::MatrixXd &widths) const |
| Get the centers and widths of the basis functions. More... | |
| double | regularization (void) const |
| Accessor function for regularization. More... | |
| bool | asymmetric_kernels (void) const |
| Accessor function for asymmetric_kernels. More... | |
| MetaParametersLWR * | clone (void) const |
| Return a pointer to a deep copy of the MetaParameters object. More... | |
| std::string | toString (void) const |
| Returns a string representation of the object. More... | |
Public Member Functions inherited from MetaParameters | |
| MetaParameters (int expected_input_dim) | |
| Constructor. More... | |
| virtual | ~MetaParameters (void) |
| Virtual destructor, because this is a base class. | |
| int | getExpectedInputDim (void) const |
| The expected dimensionality of the input data. More... | |
| virtual int | getExpectedOutputDim (void) const |
| The expected dimensionality of the output data. More... | |
Friends | |
| class | boost::serialization::access |
| Give boost serialization access to private members. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MetaParameters | |
| MetaParameters (void) | |
| Default constructor. More... | |
Meta-parameters for the Locally Weighted Regression (LWR) function approximator.
Definition at line 39 of file MetaParametersLWR.hpp.
| MetaParametersLWR | ( | int | expected_input_dim, |
| const std::vector< Eigen::VectorXd > & | centers_per_dim, | ||
| double | intersection_height = 0.5, |
||
| double | regularization = 0.0, |
||
| bool | asymmetric_kernels = false |
||
| ) |
Constructor for the algorithmic meta-parameters of the LWR function approximator.
| [in] | expected_input_dim | The dimensionality of the data this function approximator expects. Although this information is already contained in the 'centers_per_dim' argument, we ask the user to pass it explicitly so that various checks on the arguments may be conducted. |
| [in] | centers_per_dim | Centers of the basis functions, one VectorXd for each dimension. |
| [in] | intersection_height | The value at which two neighbouring basis functions will intersect. |
| [in] | regularization | Regularization parameter |
| [in] | asymmetric_kernels | Whether to use asymmetric kernels or not (to be documented, default is false) |
Definition at line 52 of file MetaParametersLWR.cpp.
| MetaParametersLWR | ( | int | expected_input_dim, |
| const Eigen::VectorXi & | n_basis_functions_per_dim, | ||
| double | intersection_height = 0.5, |
||
| double | regularization = 0.0, |
||
| bool | asymmetric_kernels = false |
||
| ) |
Constructor for the algorithmic meta-parameters of the LWR function approximator.
| [in] | expected_input_dim | The dimensionality of the data this function approximator expects. Although this information is already contained in the 'centers' argument, we ask the user to pass it explicitly so that various checks on the arguments may be conducted. |
| [in] | n_basis_functions_per_dim | Number of basis functions |
| [in] | intersection_height | The value at which two neighbouring basis functions will intersect. |
| [in] | regularization | Regularization parameter |
| [in] | asymmetric_kernels | Whether to use asymmetric kernels or not (to be documented, default is false) |
The centers and widths of the basis functions are determined from these parameters once the range of the input data is known, see also setInputMinMax()
Definition at line 68 of file MetaParametersLWR.cpp.
| MetaParametersLWR | ( | int | expected_input_dim, |
| int | n_basis_functions = 10, |
||
| double | intersection_height = 0.5, |
||
| double | regularization = 0.0, |
||
| bool | asymmetric_kernels = false |
||
| ) |
Constructor for the algorithmic meta-parameters of the LWR function approximator.
This is for the special case when the dimensionality of the input data is 1.
| [in] | expected_input_dim | The dimensionality of the data this function approximator expects. Since this constructor is for 1-D input data only, we simply check if this argument is equal to 1. |
| [in] | n_basis_functions | Number of basis functions for the one dimension |
| [in] | intersection_height | The value at which two neighbouring basis functions will intersect. |
| [in] | regularization | Regularization parameter |
| [in] | asymmetric_kernels | Whether to use asymmetric kernels or not (to be documented, default is false) |
The centers and widths of the basis functions are determined from these parameters once the range of the input data is known, see also setInputMinMax()
Definition at line 84 of file MetaParametersLWR.cpp.
| void getCentersAndWidths | ( | const Eigen::VectorXd & | min, |
| const Eigen::VectorXd & | max, | ||
| Eigen::MatrixXd & | centers, | ||
| Eigen::MatrixXd & | widths | ||
| ) | const |
Get the centers and widths of the basis functions.
| [in] | min | Minimum values of input data (one value for each dimension). |
| [in] | max | Maximum values of input data (one value for each dimension). |
| [out] | centers | Centers of the basis functions (matrix of size n_basis_functions X n_input_dims |
| [out] | widths | Widths of the basis functions (matrix of size n_basis_functions X n_input_dims |
The reason why there are not two functions getCenters and getWidths is that it is much easier to compute both at the same time, and usually you will need both at the same time anyway.
Definition at line 112 of file MetaParametersLWR.cpp.

|
inline |
Accessor function for regularization.
Definition at line 93 of file MetaParametersLWR.hpp.
|
inline |
Accessor function for asymmetric_kernels.
Definition at line 102 of file MetaParametersLWR.hpp.

|
virtual |
Return a pointer to a deep copy of the MetaParameters object.
Implements MetaParameters.
Definition at line 100 of file MetaParametersLWR.cpp.

|
virtual |
Returns a string representation of the object.
Implements MetaParameters.
Definition at line 213 of file MetaParametersLWR.cpp.
|
friend |
Give boost serialization access to private members.
Definition at line 124 of file MetaParametersLWR.hpp.
1.8.11