Class RungeKuttaStateInterpolator

    • Field Detail

      • yDotK

        protected double[][] yDotK
        Slopes at the intermediate points
    • Constructor Detail

      • RungeKuttaStateInterpolator

        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 Detail

      • create

        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

        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

        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

        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