Class RungeKuttaStateInterpolator

java.lang.Object
org.hipparchus.ode.sampling.AbstractODEStateInterpolator
org.hipparchus.ode.nonstiff.interpolators.RungeKuttaStateInterpolator
All Implemented Interfaces:
Serializable, ODEStateInterpolator
Direct Known Subclasses:
ClassicalRungeKuttaStateInterpolator, DormandPrince54StateInterpolator, DormandPrince853StateInterpolator, EulerStateInterpolator, GillStateInterpolator, HighamHall54StateInterpolator, LutherStateInterpolator, MidpointStateInterpolator, ThreeEighthesStateInterpolator

public abstract class RungeKuttaStateInterpolator extends AbstractODEStateInterpolator
This class represents an interpolator over the last step during an ODE integration for Runge-Kutta and embedded Runge-Kutta integrators.
See Also:
  • Field Details Link icon

    • yDotK Link icon

      protected double[][] yDotK
      Slopes at the intermediate points
  • Constructor Details Link icon

    • RungeKuttaStateInterpolator Link icon

      protected RungeKuttaStateInterpolator(boolean forward, double[][] yDotK, ODEStateAndDerivative globalPreviousState, ODEStateAndDerivative globalCurrentState, ODEStateAndDerivative softPreviousState, ODEStateAndDerivative softCurrentState, EquationsMapper mapper)
      Simple constructor.
      Parameters:
      forward - integration direction indicator
      yDotK - slopes at the intermediate points
      globalPreviousState - start of the global step
      globalCurrentState - end of the global step
      softPreviousState - start of the restricted step
      softCurrentState - end of the restricted step
      mapper - equations mapper for the all equations
  • Method Details Link icon

    • create Link icon

      protected RungeKuttaStateInterpolator create(boolean newForward, ODEStateAndDerivative newGlobalPreviousState, ODEStateAndDerivative newGlobalCurrentState, ODEStateAndDerivative newSoftPreviousState, ODEStateAndDerivative newSoftCurrentState, EquationsMapper newMapper)
      Create a new instance.
      Specified by:
      create in class AbstractODEStateInterpolator
      Parameters:
      newForward - integration direction indicator
      newGlobalPreviousState - start of the global step
      newGlobalCurrentState - end of the global step
      newSoftPreviousState - start of the restricted step
      newSoftCurrentState - end of the restricted step
      newMapper - equations mapper for the all equations
      Returns:
      a new instance
    • create Link icon

      protected abstract RungeKuttaStateInterpolator create(boolean newForward, double[][] newYDotK, ODEStateAndDerivative newGlobalPreviousState, ODEStateAndDerivative newGlobalCurrentState, ODEStateAndDerivative newSoftPreviousState, ODEStateAndDerivative newSoftCurrentState, EquationsMapper newMapper)
      Create a new instance.
      Parameters:
      newForward - integration direction indicator
      newYDotK - slopes at the intermediate points
      newGlobalPreviousState - start of the global step
      newGlobalCurrentState - end of the global step
      newSoftPreviousState - start of the restricted step
      newSoftCurrentState - end of the restricted step
      newMapper - equations mapper for the all equations
      Returns:
      a new instance
    • previousStateLinearCombination Link icon

      protected final double[] previousStateLinearCombination(double... coefficients)
      Compute a state by linear combination added to previous state.
      Parameters:
      coefficients - coefficients to apply to the method staged derivatives
      Returns:
      combined state
    • currentStateLinearCombination Link icon

      protected double[] currentStateLinearCombination(double... coefficients)
      Compute a state by linear combination added to current state.
      Parameters:
      coefficients - coefficients to apply to the method staged derivatives
      Returns:
      combined state
    • derivativeLinearCombination Link icon

      protected double[] derivativeLinearCombination(double... coefficients)
      Compute a state derivative by linear combination.
      Parameters:
      coefficients - coefficients to apply to the method staged derivatives
      Returns:
      combined state