|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ru.sscc.spline.creator.SplineCreator
An abstract parent class for all spline creators.
Constructor Summary | |
protected |
SplineCreator()
Default constructor. |
Method Summary | |
protected void |
attachSplineBody(SplineBody body)
Attaches a spline body to the creator and sets the prepared tag to false. |
abstract void |
calculate(RealVector source,
RealVector target)
A basic master's method that calculates spline coefficients using a source of interpolating data. |
abstract double |
calculationCost()
Returns a number of operations needed for calculation of one spline coefficients vector. |
java.lang.Object |
clone()
Should return nonprepared clone of the creator. |
Spline |
constructSpline(RealVector source)
Constructs a spline via its interpolating data coefficients. |
Splines |
constructSplinesByColumns(RealVectors source)
Constructs a spline vector via its interpolating data coefficients represented by columns of a RealVectors array. |
Splines |
constructSplinesByRows(RealVectors source)
Constructs a spline vector via its interpolating data coefficients represented by rows of a RealVectors array. |
void |
ensurePrepared()
Ensures the creator prepared. |
SplineBody |
getSplineBody()
Returns the spline body. |
boolean |
isPrepared()
Returns true if the creator is prepared. |
protected void |
setPrepared(boolean prepared)
Sets the value of prepared tag. |
abstract int |
sourceSize()
Returns a size of an interpolating data vector. |
int |
targetSize()
Returns a size of a spline coefficients vector. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected SplineCreator()
Method Detail |
protected void attachSplineBody(SplineBody body)
body
- a spline body to attachpublic java.lang.Object clone()
public final SplineBody getSplineBody()
public abstract int sourceSize()
public final int targetSize()
protected final void setPrepared(boolean prepared)
public final boolean isPrepared()
public final void ensurePrepared()
public abstract void calculate(RealVector source, RealVector target)
source
- an interpolating data vectortarget
- a resulting spline coefficients vectorpublic abstract double calculationCost()
public final Spline constructSpline(RealVector source)
source
- an interpolating datapublic final Splines constructSplinesByColumns(RealVectors source)
source
- an array of interpolated vectorspublic final Splines constructSplinesByRows(RealVectors source)
source
- an array of interpolated vectors
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |