|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.ode.nonstiff.AdamsMoultonIntegrator.Corrector
private class AdamsMoultonIntegrator.Corrector
Corrector for current state in Adams-Moulton method.
This visitor implements the Taylor series formula:
Yn+1 = yn + s1(n+1) + [ -1 +1 -1 +1 ... ±1 ] rn+1
Field Summary | |
---|---|
private double[] |
after
Current state after correction. |
private double[] |
before
Current state before correction. |
private double[] |
previous
Previous state. |
private double[] |
scaled
Current scaled first derivative. |
Constructor Summary | |
---|---|
AdamsMoultonIntegrator.Corrector(double[] previous,
double[] scaled,
double[] state)
Simple constructor. |
Method Summary | |
---|---|
double |
end()
End visiting te Nordsieck vector. |
void |
start(int rows,
int columns,
int startRow,
int endRow,
int startColumn,
int endColumn)
Start visiting a matrix. |
void |
visit(int row,
int column,
double value)
Visit one matrix entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final double[] previous
private final double[] scaled
private final double[] before
private final double[] after
Constructor Detail |
---|
public AdamsMoultonIntegrator.Corrector(double[] previous, double[] scaled, double[] state)
previous
- previous statescaled
- current scaled first derivativestate
- state to correct (will be overwritten after visit)Method Detail |
---|
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 RealMatrixPreservingVisitor
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, double value) throws MatrixVisitorException
visit
in interface RealMatrixPreservingVisitor
row
- row index of the entrycolumn
- column index of the entryvalue
- current value of the entry
MatrixVisitorException
- if something wrong occurspublic double 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 RealMatrixPreservingVisitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |