Class RungeKuttaStepInterpolator

java.lang.Object
org.apache.commons.math3.ode.sampling.AbstractStepInterpolator
org.apache.commons.math3.ode.nonstiff.RungeKuttaStepInterpolator
All Implemented Interfaces:
Externalizable, Serializable, StepInterpolator
Direct Known Subclasses:
ClassicalRungeKuttaStepInterpolator, DormandPrince54StepInterpolator, DormandPrince853StepInterpolator, EulerStepInterpolator, GillStepInterpolator, HighamHall54StepInterpolator, LutherStepInterpolator, MidpointStepInterpolator, ThreeEighthesStepInterpolator

abstract class RungeKuttaStepInterpolator extends AbstractStepInterpolator
This class represents an interpolator over the last step during an ODE integration for Runge-Kutta and embedded Runge-Kutta integrators.
Since:
1.2
See Also:
  • Field Details

    • previousState

      protected double[] previousState
      Previous state.
    • yDotK

      protected double[][] yDotK
      Slopes at the intermediate points
    • integrator

      protected AbstractIntegrator integrator
      Reference to the integrator.
  • Constructor Details

    • RungeKuttaStepInterpolator

      protected RungeKuttaStepInterpolator()
      Simple constructor. This constructor builds an instance that is not usable yet, the reinitialize(org.apache.commons.math3.ode.AbstractIntegrator, double[], double[][], boolean, org.apache.commons.math3.ode.EquationsMapper, org.apache.commons.math3.ode.EquationsMapper[]) method should be called before using the instance in order to initialize the internal arrays. This constructor is used only in order to delay the initialization in some cases. The RungeKuttaIntegrator and EmbeddedRungeKuttaIntegrator classes use the prototyping design pattern to create the step interpolators by cloning an uninitialized model and latter initializing the copy.
    • RungeKuttaStepInterpolator

      RungeKuttaStepInterpolator(RungeKuttaStepInterpolator interpolator)
      Copy constructor.

      The copied interpolator should have been finalized before the copy, otherwise the copy will not be able to perform correctly any interpolation and will throw a NullPointerException later. Since we don't want this constructor to throw the exceptions finalization may involve and since we don't want this method to modify the state of the copied interpolator, finalization is not done automatically, it remains under user control.

      The copy is a deep copy: its arrays are separated from the original arrays of the instance.

      Parameters:
      interpolator - interpolator to copy from.
  • Method Details