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
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 java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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 bodydata
- a spline coefficients container
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 axisindex
- 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