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
This class represents an interpolator over the last step during an
ODE integration for Runge-Kutta and embedded Runge-Kutta integrators.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRungeKuttaStateInterpolator(boolean forward, double[][] yDotK, ODEStateAndDerivative globalPreviousState, ODEStateAndDerivative globalCurrentState, ODEStateAndDerivative softPreviousState, ODEStateAndDerivative softCurrentState, EquationsMapper mapper) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RungeKuttaStateInterpolatorcreate(boolean newForward, double[][] newYDotK, ODEStateAndDerivative newGlobalPreviousState, ODEStateAndDerivative newGlobalCurrentState, ODEStateAndDerivative newSoftPreviousState, ODEStateAndDerivative newSoftCurrentState, EquationsMapper newMapper) Create a new instance.protected RungeKuttaStateInterpolatorcreate(boolean newForward, ODEStateAndDerivative newGlobalPreviousState, ODEStateAndDerivative newGlobalCurrentState, ODEStateAndDerivative newSoftPreviousState, ODEStateAndDerivative newSoftCurrentState, EquationsMapper newMapper) Create a new instance.protected double[]currentStateLinearCombination(double... coefficients) Compute a state by linear combination added to current state.protected double[]derivativeLinearCombination(double... coefficients) Compute a state derivative by linear combination.protected final double[]previousStateLinearCombination(double... coefficients) Compute a state by linear combination added to previous state.Methods inherited from class org.hipparchus.ode.sampling.AbstractODEStateInterpolator
computeInterpolatedStateAndDerivatives, getCurrentState, getGlobalCurrentState, getGlobalPreviousState, getInterpolatedState, getMapper, getPreviousState, isCurrentStateInterpolated, isForward, isPreviousStateInterpolated, restrictStep
-
Field Details
-
yDotK
protected double[][] yDotKSlopes at the intermediate points
-
-
Constructor Details
-
RungeKuttaStateInterpolator
protected RungeKuttaStateInterpolator(boolean forward, double[][] yDotK, ODEStateAndDerivative globalPreviousState, ODEStateAndDerivative globalCurrentState, ODEStateAndDerivative softPreviousState, ODEStateAndDerivative softCurrentState, EquationsMapper mapper) Simple constructor.- Parameters:
forward- integration direction indicatoryDotK- slopes at the intermediate pointsglobalPreviousState- start of the global stepglobalCurrentState- end of the global stepsoftPreviousState- start of the restricted stepsoftCurrentState- end of the restricted stepmapper- equations mapper for the all equations
-
-
Method Details
-
create
protected RungeKuttaStateInterpolator create(boolean newForward, ODEStateAndDerivative newGlobalPreviousState, ODEStateAndDerivative newGlobalCurrentState, ODEStateAndDerivative newSoftPreviousState, ODEStateAndDerivative newSoftCurrentState, EquationsMapper newMapper) Create a new instance.- Specified by:
createin classAbstractODEStateInterpolator- Parameters:
newForward- integration direction indicatornewGlobalPreviousState- start of the global stepnewGlobalCurrentState- end of the global stepnewSoftPreviousState- start of the restricted stepnewSoftCurrentState- end of the restricted stepnewMapper- equations mapper for the all equations- Returns:
- a new instance
-
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 indicatornewYDotK- slopes at the intermediate pointsnewGlobalPreviousState- start of the global stepnewGlobalCurrentState- end of the global stepnewSoftPreviousState- start of the restricted stepnewSoftCurrentState- end of the restricted stepnewMapper- 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
-