Go::SplineApproximator Class Reference
['geometry' - a spline library]

An Interpolator that generates a spline curve approximating the given dataset in the least squares sense. More...

#include <SplineApproximator.h>

Inheritance diagram for Go::SplineApproximator:

Go::Interpolator List of all members.

Public Member Functions

 SplineApproximator ()
 Constructor takes no arguments.
virtual ~SplineApproximator ()
 Virtual destructor ensures safe inheritance.
virtual const BsplineBasisbasis ()
 after the function interpolate() has been successfully run, this function can be called to get the BsplineBasis of the generated curve.
virtual void interpolate (int num_points, int dimension, const double *param_start, const double *data_start, std::vector< double > &coefs)
 The interpolating function, as inherited by Interpolator.
void setNumCoefs (int num)
 Specify the number of basis functions / control points to use in the approximating curve.
void setSplineSpace (const BsplineBasis &basis)
 Directly specify the spline space in which to search for the approximating function.

Detailed Description

An Interpolator that generates a spline curve approximating the given dataset in the least squares sense.

Definition at line 50 of file SplineApproximator.h.


Member Function Documentation

virtual const BsplineBasis& Go::SplineApproximator::basis (  )  [virtual]

after the function interpolate() has been successfully run, this function can be called to get the BsplineBasis of the generated curve.

Returns:
a constant reference to the BsplineBasis of the curve previously generated by interpolate().

Implements Go::Interpolator.

Referenced by setSplineSpace().

virtual void Go::SplineApproximator::interpolate ( int  num_points,
int  dimension,
const double *  param_start,
const double *  data_start,
std::vector< double > &  coefs 
) [virtual]

The interpolating function, as inherited by Interpolator.

Prior to calling this function, the user must have specified:

Implements Go::Interpolator.


The documentation for this class was generated from the following file:
Generated on Mon Jun 11 14:48:19 2007 for GoTools Core Library by  doxygen 1.5.1