ru.sscc.spline
Class Spline

java.lang.Object
  |
  +--ru.sscc.spline.BaseSpline
        |
        +--ru.sscc.spline.Spline

public class Spline
extends BaseSpline

The class supports a 1D or multi-D spline value calculation in any point of the space of independent variables. For the 1D spline, the calculation of a spline derivative is also possible if the spline body permits this operation.

See Also:
Serialized Form

Fields inherited from class ru.sscc.spline.BaseSpline
body, data, workspace
 
Constructor Summary
Spline(SplineBody body)
          Constructor (creates spline coefficients container).
Spline(SplineBody body, RealContainer data)
          Constructor.
 
Method Summary
 RealVector getVector()
          Returns the vector of spline coefficients.
 double value(double point)
          Calculates a spline value at a point required.
 double value(double point, int index)
          Calculates a spline derivative at a point required.
 double value(RealPointer point)
          Calculates a spline value at a point required.
 
Methods inherited from class ru.sscc.spline.BaseSpline
clone, dimension, flush, getBody, getContainer, prepareWorkspace, prepareWorkspace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spline

public Spline(SplineBody body)
Constructor (creates spline coefficients container).
Parameters:
body - a spline body

Spline

public Spline(SplineBody body,
              RealContainer data)
Constructor.
Parameters:
body - a spline body
data - a spline coefficients container
Method Detail

getVector

public final RealVector getVector()
Returns the vector of spline coefficients.

value

public final double value(double point)
Calculates a spline value at a point required. May be used for 1D splines only. A point is a point on the real axis.
Parameters:
point - a point on the real axis
Returns:
the spline value

value

public double value(double point,
                    int index)
Calculates a spline derivative at a point required. May be used for 1D splines only. A point is a point on the real axis and an index is a derivative index to be calculated. index=0 means a spline value calculation.
Parameters:
point - a point on the real axis
index - a derivative index
Returns:
the spline derivative value

value

public double value(RealPointer point)
Calculates a spline value at a point required. May be used for any (1D or multi-D) spline. A point vector means a point in the space of independent variables.
Parameters:
point - a point in the space of independent variables
Returns:
the spline value