public abstract class RungeKuttaAdaptiveStepIntegrator extends AdaptiveNumericalIntegrator
Modifier | Constructor and Description |
---|---|
protected |
RungeKuttaAdaptiveStepIntegrator(RungeKuttaAdaptiveStepIntegrator existingInstance,
CopyContext context)
Initializes a new instance as a copy of an existing instance.
|
protected |
RungeKuttaAdaptiveStepIntegrator(RungeKuttaAlgorithm tableau)
Initializes a new instance based on the given tableau.
|
Modifier and Type | Method and Description |
---|---|
protected RungeKuttaAlgorithm |
getTableau()
Gets the Butcher Tableau with the coefficients and weights
to use to perform the RungeKutta integration.
|
void |
initialize(double x,
double[] y)
Initialize the integrator's initial independent and dependent variables and reset the integration parameters.
|
void |
reintegrate(double stepSize)
Repeats the last integration of the differential equations.
|
protected void |
setTableau(RungeKuttaAlgorithm value)
Sets the Butcher Tableau with the coefficients and weights
to use to perform the RungeKutta integration.
|
adaptStep, adjustStep, boundAndTruncateStepSize, getAdaptiveWeights, getCurrentStepSize, getIterations, getMaximumIterations, getMaximumStepSize, getMinimumStepSize, getStepDeflationExponent, getStepDeflationFactor, getStepInflationExponent, getStepInflationFactor, getStepSizeBehavior, getStepTruncationOrder, integrate, integrate, setAdaptiveWeights, setCurrentStepSize, setIterations, setMaximumIterations, setMaximumStepSize, setMinimumStepSize, setStepDeflationExponent, setStepDeflationFactor, setStepInflationExponent, setStepInflationFactor, setStepSizeBehavior, setStepTruncationOrder
clone, getDimension, getDirection, getFinalDependentVariableValues, getFinalIndependentVariableValue, getInitialDependentVariableValues, getInitialIndependentVariableValue, getInitialStepSize, getIsThreadSafe, getPreviousStepSize, getStepSizeInformation, getSystemOfEquations, setDirection, setFinalDependentVariableValues, setFinalIndependentVariableValue, setInitialDependentVariableValues, setInitialIndependentVariableValue, setInitialStepSize, setStepSizeInformation, setSystemOfEquations, startNextStep
protected RungeKuttaAdaptiveStepIntegrator(RungeKuttaAlgorithm tableau)
tableau
- The Butcher Tableau containing the coefficients and weights for the algorithm.protected RungeKuttaAdaptiveStepIntegrator(@Nonnull RungeKuttaAdaptiveStepIntegrator existingInstance, @Nonnull CopyContext context)
See ICloneWithContext.clone(CopyContext)
for more information about how to implement this constructor
in a derived class.
existingInstance
- The existing instance to copy.context
- A CopyContext
that controls the depth of the copy.ArgumentNullException
- Thrown when existingInstance
or context
is null
.protected final RungeKuttaAlgorithm getTableau()
protected final void setTableau(RungeKuttaAlgorithm value)
public void initialize(double x, double[] y)
initialize
in class AdaptiveNumericalIntegrator
x
- The value of the initial independent variable.y
- The values for the initial dependent variables.public void reintegrate(double stepSize)
Repeats the last integration of the differential equations.
When overriding this method, note that the CurrentStepSize
(get
)
property should be unaffected by the stepSize
parameter.
reintegrate
in class NumericalIntegrator
stepSize
- The increment made to the InitialIndependentVariableValue
(get
/ set
)
to transition to the new FinalIndependentVariableValue
(get
/ set
).