Public Member Functions | Protected Attributes
dmp::FunctionApprox Class Reference

Interface for univariate linear function approximation. More...

#include <function_approx.h>

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

List of all members.

Public Member Functions

virtual double evalAt (double x)=0
 Evaluate the function approximator at point x.
 FunctionApprox ()
int getNumBases ()
 Returns the number of basis functions.
std::vector< double > getWeights ()
 Returns the current weight vector.
virtual void leastSquaresWeights (double *X, double *Y, int n_pts)=0
 Computes the least squares weights given a set of data points.
virtual ~FunctionApprox ()

Protected Attributes

int n_bases
std::vector< double > weights

Detailed Description

Interface for univariate linear function approximation.

Definition at line 50 of file function_approx.h.


Constructor & Destructor Documentation

Definition at line 52 of file function_approx.h.

virtual dmp::FunctionApprox::~FunctionApprox ( ) [inline, virtual]

Definition at line 53 of file function_approx.h.


Member Function Documentation

virtual double dmp::FunctionApprox::evalAt ( double  x) [pure virtual]

Evaluate the function approximator at point x.

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

Implemented in dmp::FourierApprox, and dmp::RadialApprox.

Returns the number of basis functions.

Returns:
The number of basis functions used by the approximator

Definition at line 70 of file function_approx.h.

std::vector<double> dmp::FunctionApprox::getWeights ( ) [inline]

Returns the current weight vector.

Returns:
The current weight vector

Definition at line 75 of file function_approx.h.

virtual void dmp::FunctionApprox::leastSquaresWeights ( double *  X,
double *  Y,
int  n_pts 
) [pure 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

Implemented in dmp::FourierApprox, and dmp::RadialApprox.


Member Data Documentation

Definition at line 78 of file function_approx.h.

std::vector<double> dmp::FunctionApprox::weights [protected]

Definition at line 79 of file function_approx.h.


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


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