|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An abstract spline body interface. The spline body consists of an information shared between different splines calculated in the same conditions (only interpolated values are different). A spline body methods provide a calculation of a spline value at an arbitrary point. A partial derivatives calculation is possible for some splines. If a calculation is not supported for parameters required IllegalArgumentException should be thrown.
Field Summary | |
static java.lang.String |
DERIVATIVE_OUT_OF_RANGE
An error message generated when a required derivative evaluation isn't supported. |
static java.lang.String |
ONE_D_NONSUPPORTED
An error message generated in attempt of 1D-type call for multidimensional spline. |
static java.lang.String |
POINT_OUT_OF_RANGE
An error message generated when a point goes out of domain where a spline is defined. |
Method Summary | |
double |
calculate(SplineWorkspace workspace)
Calculates a partial derivative spline value at a required point. |
SplineWorkspace |
createWorkspace(RealPointer data)
Creates a workspace required for a spline value and partial derivatives calculation. |
int |
dimension()
Returns a spline dimension (a number of independent variables). |
int |
getVectorLength()
Returns a full number of coefficients in a spline representation. |
int |
maxQuote()
Returns a maximal number of spline coefficients simultaneously needed in a spline value or its partial derivatives calculation. |
void |
prepareWorkspace(SplineWorkspace workspace,
double point,
int index,
int count)
Prepares a workspace for an 1D spline derivative calculation at a point required. |
void |
prepareWorkspace(SplineWorkspace workspace,
RealPointer point,
int count)
Prepares a workspace for a spline calculation at a point required. |
Field Detail |
public static final java.lang.String ONE_D_NONSUPPORTED
public static final java.lang.String DERIVATIVE_OUT_OF_RANGE
public static final java.lang.String POINT_OUT_OF_RANGE
Method Detail |
public int dimension()
public int getVectorLength()
public SplineWorkspace createWorkspace(RealPointer data)
data
- a pointer to associated data vectorpublic int maxQuote()
public void prepareWorkspace(SplineWorkspace workspace, double point, int index, int count)
workspace
- a spline workspacepoint
- a point on the real axisindex
- a derivative indexcount
- a number of splines will be calculated laterpublic void prepareWorkspace(SplineWorkspace workspace, RealPointer point, int count)
workspace
- a spline workspacepoint
- a point in the space of independent variablescount
- a number of splines will be calculated laterpublic double calculate(SplineWorkspace workspace)
workspace
- a spline workspace
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |