Interface FieldStepInterpolator<T extends RealFieldElement<T>>

    • Method Detail

      • getPreviousState

        FieldODEStateAndDerivative<T> getPreviousState()
        Get the state at previous grid point time.
        Returns:
        state at previous grid point time
      • getCurrentState

        FieldODEStateAndDerivative<T> getCurrentState()
        Get the state at current grid point time.
        Returns:
        state at current grid point time
      • getInterpolatedState

        FieldODEStateAndDerivative<T> getInterpolatedState​(T time)
        Get the state at interpolated 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.

        Parameters:
        time - time of the interpolated point
        Returns:
        state at interpolated time
      • isForward

        boolean isForward()
        Check if the natural integration direction is forward.

        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.

        Returns:
        true if the integration variable (time) increases during integration