Class FixedStepRungeKuttaIntegrator

    • Constructor Detail

      • FixedStepRungeKuttaIntegrator

        protected FixedStepRungeKuttaIntegrator​(String name,
                                                double step)
        Simple constructor. Build a Runge-Kutta integrator with the given step. The default step handler does nothing.
        Parameters:
        name - name of the method
        step - integration step
    • Method Detail

      • getDefaultStep

        public double getDefaultStep()
        Getter for the default, positive step-size assigned at constructor level.
        Returns:
        step
      • createInterpolator

        protected abstract RungeKuttaStateInterpolator createInterpolator​(boolean forward,
                                                                          double[][] yDotK,
                                                                          ODEStateAndDerivative globalPreviousState,
                                                                          ODEStateAndDerivative globalCurrentState,
                                                                          EquationsMapper mapper)
        Create an interpolator.
        Parameters:
        forward - integration direction indicator
        yDotK - slopes at the intermediate points
        globalPreviousState - start of the global step
        globalCurrentState - end of the global step
        mapper - equations mapper for the all equations
        Returns:
        external weights for the high order method from Butcher array