#include <Interpolator.h>
Inheritance diagram for Go::Interpolator:
Public Member Functions | |
virtual | ~Interpolator () |
virtual desctructor assures safe inheritance | |
virtual void | interpolate (int num_points, int dimension, const double *param_start, const double *data_start, std::vector< double > &coefs)=0 |
Interpolate or approximate a set of point data by a spline. | |
virtual const BsplineBasis & | basis ()=0 |
after the function interpolate() has been successfully run, this function can be called to get the BsplineBasis of the generated curve. |
Definition at line 47 of file Interpolator.h.
virtual void Go::Interpolator::interpolate | ( | int | num_points, | |
int | dimension, | |||
const double * | param_start, | |||
const double * | data_start, | |||
std::vector< double > & | coefs | |||
) | [pure virtual] |
Interpolate or approximate a set of point data by a spline.
num_points | the number of data points to approximate | |
dimension | the dimension of each data point | |
param_start | pointer to the array where the points' parameters are consecutively stored | |
data_start | pointer to the array where the points are consecutively stored | |
coefs | upon function completion, this vector will contain the control points of the interpolating (or approximating spline). (In order to get access to the associated BsplineBasis, use the function basis(). |
Implemented in Go::HermiteInterpolator, Go::SplineApproximator, and Go::SplineInterpolator.
virtual const BsplineBasis& Go::Interpolator::basis | ( | ) | [pure virtual] |
after the function interpolate() has been successfully run, this function can be called to get the BsplineBasis of the generated curve.
Implemented in Go::HermiteInterpolator, Go::SplineApproximator, and Go::SplineInterpolator.