|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ru.sscc.spline.creator.SplineCreator | +--ru.sscc.spline.creator.SmoothingSplineCreator
An abstract parent class for all spline creators that support
the selection of smoothing parameter with SmoothingPreparator
.
Field Summary | |
protected SmoothingPreparator |
preparator
Smoothing spline preparator instance. |
Constructor Summary | |
protected |
SmoothingSplineCreator()
Default constructor. |
Method Summary | |
abstract double |
calculate(RealVector source,
RealVector target,
double epsilon)
Finds the smoothing parameter using the residual criterion and calculates spline coefficients. |
java.lang.Object |
clone()
Returns nonprepared clone of the creator that shares the constant part of the creator's body with parent instance. |
Spline |
constructSpline(java.lang.Object source,
double epsilon,
java.lang.Object weights)
Constructs a spline in one call using already prepared creator's body. |
Spline |
constructSpline(RealVector source,
double epsilon)
Finds the smoothing parameter using the residual criterion and constructs the smoothing spline at this parameter. |
double |
getAlpha()
Returns the smoothing parameter value. |
SmoothingPreparator |
getPreparator()
Returns the preparator used by the creator. |
void |
prepareSolver(double alpha)
Prepares the solver for calculation with specified alpha. |
void |
prepareWeights(java.lang.Object weights)
Prepares the weight vector. |
int |
sourceSize()
Returns a number of interpolation conditions. |
Methods inherited from class ru.sscc.spline.creator.SplineCreator |
attachSplineBody,
calculate,
calculationCost,
constructSpline,
constructSplinesByColumns,
constructSplinesByRows,
ensurePrepared,
getSplineBody,
isPrepared,
setPrepared,
targetSize |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected SmoothingPreparator preparator
Constructor Detail |
protected SmoothingSplineCreator()
Method Detail |
public java.lang.Object clone()
public final void prepareWeights(java.lang.Object weights)
weights
- a weight vector (may be the null value or an instance
of double[], float[], RealContainer, or RealVector types).public final void prepareSolver(double alpha) throws CalculatingException
public abstract double calculate(RealVector source, RealVector target, double epsilon) throws CalculatingException
source
- interpolation values at mesh nodestarget
- a vector to store spline coefficientsepsilon
- a required residual level (should be > 0)public final double getAlpha()
public final int sourceSize()
public final SmoothingPreparator getPreparator()
public final Spline constructSpline(RealVector source, double epsilon) throws CalculatingException
source
- interpolation values at mesh nodesepsilon
- a required residual level (should be > 0)public Spline constructSpline(java.lang.Object source, double epsilon, java.lang.Object weights) throws CalculatingException
source
- interpolation values at mesh nodes (an instance
of double[], float[], RealContainer, or RealVector types)epsilon
- a residual criterion value. If epsilon<=0,
the interpolation is performedweights
- a weights vector (may be the null value or an instance
of double[], float[], RealContainer, or RealVector types)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |