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

Class for function approximation by recording points and linearly interpolating. More...

#include <linear_approx.h>

Inheritance diagram for dmp::LinearApprox:
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.
 LinearApprox ()
 LinearApprox (std::vector< double > X, std::vector< double > Y)
virtual ~LinearApprox ()

Private Attributes

std::vector< pt_pairpoints

Detailed Description

Class for function approximation by recording points and linearly interpolating.

Definition at line 53 of file linear_approx.h.


Constructor & Destructor Documentation

Definition at line 55 of file linear_approx.cpp.

dmp::LinearApprox::LinearApprox ( std::vector< double >  X,
std::vector< double >  Y 
)

Definition at line 61 of file linear_approx.cpp.

Definition at line 75 of file linear_approx.cpp.


Member Function Documentation

double dmp::LinearApprox::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 80 of file linear_approx.cpp.

void dmp::LinearApprox::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 124 of file linear_approx.cpp.


Member Data Documentation

std::vector<pt_pair> dmp::LinearApprox::points [private]

Definition at line 74 of file linear_approx.h.


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


dmp
Author(s): Scott Niekum
autogenerated on Sun Oct 5 2014 23:29:12