public class NordsieckStepInterpolator extends AbstractStepInterpolator
This interpolator computes dense output around the current point. The interpolation equation is based on Taylor series formulas.
AdamsBashforthIntegrator
,
AdamsMoultonIntegrator
,
Serialized FormConstructor and Description |
---|
NordsieckStepInterpolator()
Simple constructor.
|
NordsieckStepInterpolator(NordsieckStepInterpolator interpolator)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getInterpolatedStateVariation()
Get the state vector variation from current to interpolated state.
|
void |
readExternal(ObjectInput in) |
void |
reinitialize(double[] y,
boolean forward,
EquationsMapper primaryMapper,
EquationsMapper[] secondaryMappers)
Reinitialize the instance.
|
void |
reinitialize(double time,
double stepSize,
double[] scaledDerivative,
Array2DRowRealMatrix nordsieckVector)
Reinitialize the instance.
|
void |
rescale(double stepSize)
Rescale the instance.
|
void |
writeExternal(ObjectOutput out) |
copy, finalizeStep, getCurrentTime, getGlobalCurrentTime, getGlobalPreviousTime, getInterpolatedDerivatives, getInterpolatedSecondaryDerivatives, getInterpolatedSecondaryState, getInterpolatedState, getInterpolatedTime, getPreviousTime, isForward, setInterpolatedTime, setSoftCurrentTime, setSoftPreviousTime, shift, storeTime
public NordsieckStepInterpolator()
AbstractStepInterpolator.reinitialize(double[], boolean, org.apache.commons.math3.ode.EquationsMapper, org.apache.commons.math3.ode.EquationsMapper[])
method should be called
before using the instance in order to initialize the internal arrays. This
constructor is used only in order to delay the initialization in
some cases.public NordsieckStepInterpolator(NordsieckStepInterpolator interpolator)
interpolator
- interpolator to copy from. The copy is a deep
copy: its arrays are separated from the original arrays of the
instancepublic void reinitialize(double[] y, boolean forward, EquationsMapper primaryMapper, EquationsMapper[] secondaryMappers)
Beware that all arrays must be references to integrator arrays, in order to ensure proper update without copy.
y
- reference to the integrator array holding the state at
the end of the stepforward
- integration direction indicatorprimaryMapper
- equations mapper for the primary equations setsecondaryMappers
- equations mappers for the secondary equations setspublic void reinitialize(double time, double stepSize, double[] scaledDerivative, Array2DRowRealMatrix nordsieckVector)
Beware that all arrays must be references to integrator arrays, in order to ensure proper update without copy.
time
- time at which all arrays are definedstepSize
- step size used in the scaled and Nordsieck arraysscaledDerivative
- reference to the integrator array holding the first
scaled derivativenordsieckVector
- reference to the integrator matrix holding the
Nordsieck vectorpublic void rescale(double stepSize)
Since the scaled and Nordsieck arrays are shared with the caller, this method has the side effect of rescaling this arrays in the caller too.
stepSize
- new step size to use in the scaled and Nordsieck arrayspublic double[] getInterpolatedStateVariation() throws MaxCountExceededException
This method is aimed at computing y(tinterpolation) -y(tcurrent) accurately by avoiding the cancellation errors that would occur if the subtraction were performed explicitly.
The returned vector is a reference to a reused array, so it should not be modified and it should be copied if it needs to be preserved across several calls.
AbstractStepInterpolator.getInterpolatedTime()
MaxCountExceededException
- if the number of functions evaluations is exceededAbstractStepInterpolator.getInterpolatedDerivatives()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractStepInterpolator
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractStepInterpolator
IOException
ClassNotFoundException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics