org.apache.commons.math3.ode.sampling

## Interface StepInterpolator

• All Superinterfaces:
Externalizable, Serializable
All Known Implementing Classes:
AbstractStepInterpolator, NordsieckStepInterpolator

public interface StepInterpolator
extends Externalizable
This interface represents an interpolator over the last step during an ODE integration.

The various ODE integrators provide objects implementing this interface to the step handlers. These objects are often custom objects tightly bound to the integrator internal algorithms. The handlers can use these objects to retrieve the state vector at intermediate times between the previous and the current grid points (this feature is often called dense output).

One important thing to note is that the step handlers may be so tightly bound to the integrators that they often share some internal state arrays. This imply that one should never use a direct reference to a step interpolator outside of the step handler, either for future use or for use in another thread. If such a need arise, the step interpolator must be copied using the dedicated copy() method.

Since:
1.2
FirstOrderIntegrator, SecondOrderIntegrator, StepHandler
• ### Method Summary

Methods
Modifier and Type Method and Description
StepInterpolator copy()
Copy the instance.
double getCurrentTime()
Get the current grid point time.
double[] getInterpolatedDerivatives()
Get the derivatives of the state vector of the interpolated point.
double[] getInterpolatedSecondaryDerivatives(int index)
Get the interpolated secondary derivatives corresponding to the secondary equations.
double[] getInterpolatedSecondaryState(int index)
Get the interpolated secondary state corresponding to the secondary equations.
double[] getInterpolatedState()
Get the state vector of the interpolated point.
double getInterpolatedTime()
Get the time of the interpolated point.
double getPreviousTime()
Get the previous grid point time.
boolean isForward()
Check if the natural integration direction is forward.
void setInterpolatedTime(double time)
Set the time of the interpolated point.
• ### Methods inherited from interface java.io.Externalizable

readExternal, writeExternal