|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.sscc.spline.analytic.GSplineBody
The implementation of spline body interface supporting the calculation of spline value for Duchon's spline. A partial derivative calculation is not possible.
| Field Summary | |
protected int |
dataSize
The size of coefficients vector. |
protected ReducedMesh |
mesh
The mesh. |
protected byte |
mode
The spline mode (0, 1, 2, or 3). |
| Fields inherited from interface ru.sscc.spline.SplineBody |
DERIVATIVE_OUT_OF_RANGE,
ONE_D_NONSUPPORTED,
POINT_OUT_OF_RANGE |
| Constructor Summary | |
GSplineBody(int mode,
ReducedMesh mesh)
Constructor. |
|
| Method Summary | |
double |
calculate(SplineWorkspace workspace)
Calculates a spline value at a required point by the formula : s(s)= SliG(s,ti)+ Smasa. |
SplineWorkspace |
createWorkspace(RealPointer data)
Creates a workspace required for a Green spline value calculation. |
int |
dimension()
Return the mesh dimension. |
int |
getVectorLength()
Return the coefficients vector size. |
int |
maxQuote()
Return the coefficients vector size because all coefficients are always needed in spline value calculation. |
void |
prepareBase(RealPointer x,
RealPointer vector)
Calculates the vector of spline base values at a point x. |
void |
prepareWorkspace(SplineWorkspace workspace,
double point,
int index,
int count)
Prepares a workspace for a Green spline value calculation in 1D case. |
void |
prepareWorkspace(SplineWorkspace workspace,
RealPointer point,
int count)
Prepares a workspace for a spline value calculation: calculates the vector of spline base values at the reduced point and puts coordinates of reduced point into workspace. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected ReducedMesh mesh
protected int dataSize
protected byte mode
| Constructor Detail |
public GSplineBody(int mode,
ReducedMesh mesh)
mode - a spline mode from the range 0..3:
0 means pseudo-linear spline with constant polynomial kernel;
1, 2, and 3 mean pseudo-linear, pseudo-quadratic,
and pseudo-cubic spline respectively with linear
polynomial kernelmesh - a mesh| Method Detail |
public SplineWorkspace createWorkspace(RealPointer data)
data - a pointer to coefficients vectorpublic int dimension()
public int getVectorLength()
public int maxQuote()
public void prepareWorkspace(SplineWorkspace workspace,
double point,
int index,
int count)
workspace - a spline workspacepoint - a point on the real axisindex - must be 0count - don't use in analitic case
public 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
public void prepareBase(RealPointer x,
RealPointer vector)
x - a point in reduced coordinatesvector - a vector to store results
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||