DMP_BBO library
Public Member Functions | Friends | List of all members

Meta-parameters for the Gaussian Process Regression (GPR) function approximator. More...

#include <MetaParametersGPR.hpp>

Inheritance diagram for MetaParametersGPR:
Inheritance graph
[legend]
Collaboration diagram for MetaParametersGPR:
Collaboration graph
[legend]

Public Member Functions

 MetaParametersGPR (int expected_input_dim, double maximum_covariance, double sigma)
 Constructor for the algorithmic meta-parameters of the GPR function approximator. More...
 
 MetaParametersGPR (int expected_input_dim, double maximum_covariance, const Eigen::VectorXd &sigmas)
 Constructor for the algorithmic meta-parameters of the GPR function approximator. More...
 
MetaParametersGPRclone (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...
 
double maximum_covariance () const
 Return the maximum covariance of the covariance function. More...
 
const Eigen::VectorXd & sigmas () const
 Return the sqrt of the diagonal of the covariance matrix in the Gaussian covariance function. 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...
 

Detailed Description

Meta-parameters for the Gaussian Process Regression (GPR) function approximator.

Definition at line 39 of file MetaParametersGPR.hpp.

Constructor & Destructor Documentation

MetaParametersGPR ( int  expected_input_dim,
double  maximum_covariance,
double  sigma 
)

Constructor for the algorithmic meta-parameters of the GPR function approximator.

Parameters
[in]expected_input_dimExpected input dimensionality. Useful for debugging.
[in]maximum_covarianceThe maximum allowable covariance of the covar function (aka sigma)
[in]sigmaStandard deviation in the isotropic covariance function, i.e. $ e^{(-0.5*(\mathbf{x}-\mathbf{x}')^T * \mathbf{W} * (\mathbf{x}-\mathbf{x}'))}$, with $ \mathbf{W} = \sigma^2 * \mathbf{I} $

Definition at line 52 of file MetaParametersGPR.cpp.

53 :
54  MetaParameters(expected_input_dim),
55  maximum_covariance_(maximum_covariance),
56  sigmas_(VectorXd::Constant(expected_input_dim,length))
57 {
58  assert(maximum_covariance_>0);
59  assert(length>0);
60 }
double maximum_covariance() const
Return the maximum covariance of the covariance function.
MetaParameters(void)
Default constructor.
MetaParametersGPR ( int  expected_input_dim,
double  maximum_covariance,
const Eigen::VectorXd &  sigmas 
)

Constructor for the algorithmic meta-parameters of the GPR function approximator.

Parameters
[in]expected_input_dimExpected input dimensionality. Useful for debugging.
[in]maximum_covarianceThe maximum allowable covariance of the covar function (aka sigma)
[in]sigmasStandard deviation in the isotropic covariance function, i.e. $ e^{(-0.5*(\mathbf{x}-\mathbf{x}')^T * \mathbf{W} * (\mathbf{x}-\mathbf{x}'))}$, with $ \mathbf{W} = sigmas.asDiagonal()$

Definition at line 62 of file MetaParametersGPR.cpp.

63 :
64  MetaParameters(expected_input_dim),
65  maximum_covariance_(maximum_covariance),
66  sigmas_(sigmas)
67 {
68  assert(maximum_covariance_>0);
69  assert(sigmas.size()==expected_input_dim);
70 }
double maximum_covariance() const
Return the maximum covariance of the covariance function.
const Eigen::VectorXd & sigmas() const
Return the sqrt of the diagonal of the covariance matrix in the Gaussian covariance function...
MetaParameters(void)
Default constructor.

Member Function Documentation

MetaParametersGPR * clone ( void  ) const
virtual

Return a pointer to a deep copy of the MetaParameters object.

Returns
Pointer to a deep copy

Implements MetaParameters.

Definition at line 72 of file MetaParametersGPR.cpp.

73 {
74  return new MetaParametersGPR(getExpectedInputDim(),maximum_covariance_,sigmas_);
75 }
int getExpectedInputDim(void) const
The expected dimensionality of the input data.
MetaParametersGPR(int expected_input_dim, double maximum_covariance, double sigma)
Constructor for the algorithmic meta-parameters of the GPR function approximator. ...

Here is the call graph for this function:

string toString ( void  ) const
virtual

Returns a string representation of the object.

Returns
A string representation of the object.

Implements MetaParameters.

Definition at line 87 of file MetaParametersGPR.cpp.

88 {
89  RETURN_STRING_FROM_BOOST_SERIALIZATION_XML("MetaParametersGPR");
90 }
#define RETURN_STRING_FROM_BOOST_SERIALIZATION_XML(name)
Macro to convert the boost XML serialization of an object into a string.
double maximum_covariance ( ) const
inline

Return the maximum covariance of the covariance function.

Returns
Maximum covariance

Definition at line 65 of file MetaParametersGPR.hpp.

65 { return maximum_covariance_; }
const Eigen::VectorXd& sigmas ( ) const
inline

Return the sqrt of the diagonal of the covariance matrix in the Gaussian covariance function.

Returns
sqrt of the diagonal of the covariance matrix in the Gaussian covariance function

Definition at line 70 of file MetaParametersGPR.hpp.

70 { return sigmas_; }

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Give boost serialization access to private members.

Definition at line 84 of file MetaParametersGPR.hpp.


The documentation for this class was generated from the following files: