ru.sscc.spline.polynomial
Class OddSplineCreator
java.lang.Object
|
+--ru.sscc.spline.creator.SplineCreator
|
+--ru.sscc.spline.creator.SmoothingSplineCreator
|
+--ru.sscc.spline.polynomial.OddSplineCreator
- Direct Known Subclasses:
- POddSplineCreator
- public abstract class OddSplineCreator
- extends SmoothingSplineCreator
The basic abstract creator of 1D polynomial splines of odd degree.
Subclasses of this class have common SplinePreparator but different
spline calculators.
- See Also:
- Serialized Form
Method Summary |
protected void |
attachSplineBody(SplineBody body)
Attaches a spline body to the creator. |
java.lang.Object |
clone()
Returns nonprepared clone of the creator that shared the constant part
of the creator's body with parent instance. |
Spline |
constructSpline(int order,
java.lang.Object mesh,
java.lang.Object source,
double epsilon,
java.lang.Object weights)
Constructs the polynomial spline in one call. |
protected RealVector |
lambda()
Returns the vector to store the solution of SLAE
to be solved (allocates it at the first call). |
void |
prepareCreatorBody(int order,
SimpleMesh mesh)
Parent method that prepares the creator's body (should be overriden
in subclasses). |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
OddSplineCreator
protected OddSplineCreator()
- Default constructor.
prepareCreatorBody
public void prepareCreatorBody(int order,
SimpleMesh mesh)
- Parent method that prepares the creator's body (should be overriden
in subclasses).
- Parameters:
order
- a difference ordermesh
- a mesh
attachSplineBody
protected void attachSplineBody(SplineBody body)
- Attaches a spline body to the creator.
- Overrides:
- attachSplineBody in class SplineCreator
- Parameters:
body
- a spline body to attach
clone
public java.lang.Object clone()
- Returns nonprepared clone of the creator that shared the constant part
of the creator's body with parent instance.
- Overrides:
- clone in class SmoothingSplineCreator
lambda
protected final RealVector lambda()
- Returns the vector to store the solution of SLAE
to be solved (allocates it at the first call).
constructSpline
public Spline constructSpline(int order,
java.lang.Object mesh,
java.lang.Object source,
double epsilon,
java.lang.Object weights)
throws CalculatingException
- Constructs the polynomial spline in one call.
- Parameters:
order
- a difference ordermesh
- a mesh (an instance of SimpleMesh, RealVector,
RealContainer, double[], or float[] types)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)