T
- the type of the field elementspublic abstract class AbstractFieldStepInterpolator<T extends RealFieldElement<T>> extends Object implements FieldStepInterpolator<T>
The various ODE integrators provide objects extending this class to the step handlers. The handlers can use these objects to retrieve the state vector at intermediate times between the previous and the current grid points (dense output).
FirstOrderFieldIntegrator
,
StepHandler
Modifier and Type | Method and Description |
---|---|
FieldODEStateAndDerivative<T> |
getCurrentState()
Get the state at current grid point time.
|
FieldODEStateAndDerivative<T> |
getGlobalCurrentState()
Get the current global grid point state.
|
FieldODEStateAndDerivative<T> |
getGlobalPreviousState()
Get the previous global grid point state.
|
FieldODEStateAndDerivative<T> |
getInterpolatedState(T time)
Get the state at interpolated time.
|
FieldODEStateAndDerivative<T> |
getPreviousState()
Get the state at previous grid point time.
|
boolean |
isForward()
Check if the natural integration direction is forward.
|
AbstractFieldStepInterpolator<T> |
restrictStep(FieldODEStateAndDerivative<T> previousState,
FieldODEStateAndDerivative<T> currentState)
Create a new restricted version of the instance.
|
public AbstractFieldStepInterpolator<T> restrictStep(FieldODEStateAndDerivative<T> previousState, FieldODEStateAndDerivative<T> currentState)
The instance is not changed at all.
previousState
- start of the restricted stepcurrentState
- end of the restricted stepgetPreviousState()
,
getCurrentState()
public FieldODEStateAndDerivative<T> getGlobalPreviousState()
public FieldODEStateAndDerivative<T> getGlobalCurrentState()
public FieldODEStateAndDerivative<T> getPreviousState()
getPreviousState
in interface FieldStepInterpolator<T extends RealFieldElement<T>>
public FieldODEStateAndDerivative<T> getCurrentState()
getCurrentState
in interface FieldStepInterpolator<T extends RealFieldElement<T>>
public FieldODEStateAndDerivative<T> getInterpolatedState(T time)
Setting the time outside of the current step is allowed, but should be used with care since the accuracy of the interpolator will probably be very poor far from this step. This allowance has been added to simplify implementation of search algorithms near the step endpoints.
getInterpolatedState
in interface FieldStepInterpolator<T extends RealFieldElement<T>>
time
- time of the interpolated pointpublic boolean isForward()
This method provides the integration direction as specified by the integrator itself, it avoid some nasty problems in degenerated cases like null steps due to cancellation at step initialization, step control or discrete events triggering.
isForward
in interface FieldStepInterpolator<T extends RealFieldElement<T>>
Jas4pp 1.5 © Java Analysis Studio for Particle Physics