private class AdamsMoultonFieldIntegrator.Corrector extends java.lang.Object implements FieldMatrixPreservingVisitor<T>
This visitor implements the Taylor series formula:
Yn+1 = yn + s1(n+1) + [ -1 +1 -1 +1 ... ±1 ] rn+1
| Modifier and Type | Field and Description |
|---|---|
private T[] |
after
Current state after correction.
|
private T[] |
before
Current state before correction.
|
private T[] |
previous
Previous state.
|
private T[] |
scaled
Current scaled first derivative.
|
| Constructor and Description |
|---|
AdamsMoultonFieldIntegrator.Corrector(T[] previous,
T[] scaled,
T[] state)
Simple constructor.
|
private final T extends RealFieldElement<T>[] previous
private final T extends RealFieldElement<T>[] scaled
private final T extends RealFieldElement<T>[] before
private final T extends RealFieldElement<T>[] after
public void start(int rows,
int columns,
int startRow,
int endRow,
int startColumn,
int endColumn)
This method is called once before any entry of the matrix is visited.
start in interface FieldMatrixPreservingVisitor<T extends RealFieldElement<T>>rows - number of rows of the matrixcolumns - number of columns of the matrixstartRow - Initial row indexendRow - Final row index (inclusive)startColumn - Initial column indexendColumn - Final column index (inclusive)public void visit(int row,
int column,
T value)
visit in interface FieldMatrixPreservingVisitor<T extends RealFieldElement<T>>row - row index of the entrycolumn - column index of the entryvalue - current value of the entrypublic T end()
The correction is used to control stepsize. So its amplitude is considered to be an error, which must be normalized according to error control settings. If the normalized value is greater than 1, the correction was too large and the step must be rejected.
end in interface FieldMatrixPreservingVisitor<T extends RealFieldElement<T>>Copyright (c) 2003-2017 Apache Software Foundation