maspack.interpolation
Class CubicSpline
java.lang.Object
maspack.interpolation.CubicSpline
public class CubicSpline
- extends java.lang.Object
A cardinal hermation Spline Interpolation method.
- Author:
- chad
Method Summary |
static double |
interpolate(double[] p,
double[] ptimes,
double t)
|
static double |
interpolate(int firstDerivative,
double[] p,
double[] ptimes,
double t)
|
static void |
printHermite()
The eval method evaluates a point on a curve given a parametric value "t". |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CubicSpline
public CubicSpline()
printHermite
public static void printHermite()
- The eval method evaluates a point on a curve given a parametric value "t".
This value should not be changed. The dimension of the point to evaluate
is p.length - 1. The result of the evaluation is placed in index locations
0 .. p.length - 2 (inclusive).
The eval method should remain protected except for those curves that do no
need any preparation to be done in the appendTo method.
interpolate
public static double interpolate(double[] p,
double[] ptimes,
double t)
interpolate
public static double interpolate(int firstDerivative,
double[] p,
double[] ptimes,
double t)