This interpolator computes dense output around the current point. The interpolation equation is based on Taylor series formulas.
org.apache.commons.math3.ode.nonstiff.AdamsBashforthIntegrator , org.apache.commons.math3.ode.nonstiff.AdamsMoultonIntegrator
| Modifier and Type | Field and Description |
|---|---|
| private Array2DRowRealMatrix | nordsieck
Nordsieck vector. |
| private double | referenceTime
Reference time for all arrays. |
| private double[] | scaled
First scaled derivative. |
| private double | scalingH
Step size used in the first scaled derivative and Nordsieck vector. |
| private static final long | serialVersionUID
Serializable version identifier |
| protected double[] | stateVariation
State variation. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | NordsieckStepInterpolator(final NordsieckStepInterpolator
interpolator to copy from. The copy is a deep
copy: its arrays are separated from the original arrays of the
instance interpolator)Copy constructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | computeInterpolatedStateAndDerivatives(final double
normalized interpolation abscissa within the step
(theta is zero at the previous time step and one at the current time step) theta, final double time gap between the interpolated time and
the current time oneMinusThetaH)Implements abstract org. Compute the state and derivatives at the interpolated time. |
| protected StepInterpolator | doCopy()
Implements abstract org. Really copy the finalized instance. |
| public double[] | Returns: state vector at timegetInterpolatedTimeGet the state vector variation from current to interpolated state. |
| public void | readExternal(final ObjectInput
the stream to read data from in order to restore the object in)Implements abstract org. Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public void | reinitialize(final double[]
reference to the integrator array holding the state at
the end of the step y, final boolean integration direction indicator forward, final EquationsMapper equations mapper for the primary equations set primaryMapper, final EquationsMapper[] equations mappers for the secondary equations sets secondaryMappers)Overrides org. Reinitialize the instance. |
| public void | reinitialize(final double
time at which all arrays are defined time, final double step size used in the scaled and Nordsieck arrays stepSize, final double[] reference to the integrator array holding the first
scaled derivative scaledDerivative, final Array2DRowRealMatrix reference to the integrator matrix holding the
Nordsieck vector nordsieckVector)Reinitialize the instance. |
| public void | rescale(final double
new step size to use in the scaled and Nordsieck arrays stepSize)Rescale the instance. |
| public void | writeExternal(final ObjectOutput
the stream to write the object to out)Implements abstract org. Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| nordsieck | back to summary |
|---|---|
| private Array2DRowRealMatrix nordsieck Nordsieck vector. | |
| referenceTime | back to summary |
|---|---|
| private double referenceTime Reference time for all arrays. Sometimes, the reference time is the same as previousTime, sometimes it is the same as currentTime, so we use a separate field to avoid any confusion. | |
| scaled | back to summary |
|---|---|
| private double[] scaled First scaled derivative. | |
| scalingH | back to summary |
|---|---|
| private double scalingH Step size used in the first scaled derivative and Nordsieck vector. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable version identifier | |
| stateVariation | back to summary |
|---|---|
| protected double[] stateVariation State variation. | |
| NordsieckStepInterpolator | back to summary |
|---|---|
| public NordsieckStepInterpolator() Simple constructor.
This constructor builds an instance that is not usable yet, the
| |
| NordsieckStepInterpolator | back to summary |
|---|---|
| public NordsieckStepInterpolator(final NordsieckStepInterpolator interpolator) Copy constructor.
| |
| computeInterpolatedStateAndDerivatives | back to summary |
|---|---|
| protected void computeInterpolatedStateAndDerivatives(final double theta, final double oneMinusThetaH) Implements abstract org. Compute the state and derivatives at the interpolated time. This is the main processing method that should be implemented by the derived classes to perform the interpolation.
| |
| doCopy | back to summary |
|---|---|
| protected StepInterpolator doCopy() Implements abstract org. Doc from org. Really copy the finalized instance. This method is called by
| |
| getInterpolatedStateVariation | back to summary |
|---|---|
| public double[] getInterpolatedStateVariation() throws MaxCountExceededException Get the state vector variation from current to interpolated state. 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.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException Implements abstract org. Implements java. Doc from org. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| reinitialize | back to summary |
|---|---|
| public void reinitialize(final double[] y, final boolean forward, final EquationsMapper primaryMapper, final EquationsMapper[] secondaryMappers) Overrides org. Reinitialize the instance. Beware that all arrays must be references to integrator arrays, in order to ensure proper update without copy.
| |
| reinitialize | back to summary |
|---|---|
| public void reinitialize(final double time, final double stepSize, final double[] scaledDerivative, final Array2DRowRealMatrix nordsieckVector) Reinitialize the instance. Beware that all arrays must be references to integrator arrays, in order to ensure proper update without copy.
| |
| rescale | back to summary |
|---|---|
| public void rescale(final double stepSize) Rescale the instance. 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.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(final ObjectOutput out) throws IOException Implements abstract org. Implements java. Doc from org. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |