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.
-
-
Field Summary
Fields Modifier and Type Field Description protected double[][]
yDotK
Slopes at the intermediate points
-
Constructor Summary
Constructors Modifier Constructor Description protected
RungeKuttaStateInterpolator(boolean forward, double[][] yDotK, ODEStateAndDerivative globalPreviousState, ODEStateAndDerivative globalCurrentState, ODEStateAndDerivative softPreviousState, ODEStateAndDerivative softCurrentState, EquationsMapper mapper)
Simple constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract RungeKuttaStateInterpolator
create(boolean newForward, double[][] newYDotK, ODEStateAndDerivative newGlobalPreviousState, ODEStateAndDerivative newGlobalCurrentState, ODEStateAndDerivative newSoftPreviousState, ODEStateAndDerivative newSoftCurrentState, EquationsMapper newMapper)
Create a new instance.protected RungeKuttaStateInterpolator
create(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 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
-
-
-
-
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 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 Detail
-
create
protected RungeKuttaStateInterpolator create(boolean newForward, ODEStateAndDerivative newGlobalPreviousState, ODEStateAndDerivative newGlobalCurrentState, ODEStateAndDerivative newSoftPreviousState, ODEStateAndDerivative newSoftCurrentState, EquationsMapper newMapper)
Create a new instance.- Specified by:
create
in 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
-
-