Public Member Functions | Private Member Functions | Private Attributes
dmp::RadialApprox Class Reference

Class for linear function approximation with the univariate Radial basis. More...

#include <radial_approx.h>

Inheritance diagram for dmp::RadialApprox:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual double evalAt (double x)
 Evaluate the function approximator at point x.
virtual void leastSquaresWeights (double *X, double *Y, int n_pts)
 Computes the least squares weights given a set of data points.
 RadialApprox (int num_bases, double base_width, double alpha)
 RadialApprox (const std::vector< double > &w, double base_width, double alpha)
virtual ~RadialApprox ()

Private Member Functions

void calcFeatures (double x)
 Calculate the Radial basis features at point x.
Eigen::MatrixXd pseudoinverse (Eigen::MatrixXd mat)
 Calculate the Moore-Penrose pseudoinverse of a matrix using SVD.

Private Attributes

double * centers
double * features
double * widths

Detailed Description

Class for linear function approximation with the univariate Radial basis.

Definition at line 53 of file radial_approx.h.


Constructor & Destructor Documentation

dmp::RadialApprox::RadialApprox ( int  num_bases,
double  base_width,
double  alpha 
)

Definition at line 49 of file radial_approx.cpp.

dmp::RadialApprox::RadialApprox ( const std::vector< double > &  w,
double  base_width,
double  alpha 
)

Definition at line 79 of file radial_approx.cpp.


Member Function Documentation

void dmp::RadialApprox::calcFeatures ( double  x) [private]

Calculate the Radial basis features at point x.

Parameters:
xThe point at which to get features

Definition at line 121 of file radial_approx.cpp.

double dmp::RadialApprox::evalAt ( double  x) [virtual]

Evaluate the function approximator at point x.

Parameters:
xThe point at which to evaluate
Returns:
The scalar value of the function at x

Implements dmp::FunctionApprox.

Definition at line 87 of file radial_approx.cpp.

void dmp::RadialApprox::leastSquaresWeights ( double *  X,
double *  Y,
int  n_pts 
) [virtual]

Computes the least squares weights given a set of data points.

Parameters:
XA vector of the domain values of the points
YA vector of the target values of the points

Implements dmp::FunctionApprox.

Definition at line 99 of file radial_approx.cpp.

MatrixXd dmp::RadialApprox::pseudoinverse ( Eigen::MatrixXd  mat) [private]

Calculate the Moore-Penrose pseudoinverse of a matrix using SVD.

Parameters:
matThe matrix to pseudoinvert
Returns:
The pseudoinverted matrix

Definition at line 134 of file radial_approx.cpp.


Member Data Documentation

double* dmp::RadialApprox::centers [private]

Definition at line 84 of file radial_approx.h.

double* dmp::RadialApprox::features [private]

Definition at line 83 of file radial_approx.h.

double* dmp::RadialApprox::widths [private]

Definition at line 85 of file radial_approx.h.


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


dmp
Author(s): Scott Niekum
autogenerated on Fri Jan 3 2014 11:19:23