public abstract class AbstractDoubleIterationMonitor extends Object implements DoubleIterationMonitor
| Constructor and Description |
|---|
AbstractDoubleIterationMonitor()
Constructor for AbstractIterationMonitor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
converged(double r)
Checks for convergence
|
boolean |
converged(double r,
DoubleMatrix1D x)
Checks for convergence
|
boolean |
converged(DoubleMatrix1D r)
Checks for convergence
|
boolean |
converged(DoubleMatrix1D r,
DoubleMatrix1D x)
Checks for convergence
|
DoubleIterationReporter |
getIterationReporter()
Returns current iteration reporter
|
Norm |
getNormType()
Returns the vector-norm in use
|
boolean |
isFirst()
Returns true for the first iteration
|
int |
iterations()
Number of iterations performed
|
void |
next()
Increases iteration counter
|
double |
residual()
Returns current residual
|
void |
setFirst()
Resets the iteration
|
void |
setIterationReporter(DoubleIterationReporter monitor)
Sets new iteration reporter
|
void |
setNormType(Norm normType)
Sets the vector-norm to calculate with
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxIterations, setMaxIterationspublic AbstractDoubleIterationMonitor()
public void setFirst()
DoubleIterationMonitorsetFirst in interface DoubleIterationMonitorpublic boolean isFirst()
DoubleIterationMonitorisFirst in interface DoubleIterationMonitorpublic void next()
DoubleIterationMonitornext in interface DoubleIterationMonitorpublic int iterations()
DoubleIterationMonitoriterations in interface DoubleIterationMonitorpublic boolean converged(DoubleMatrix1D r, DoubleMatrix1D x) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitorconverged in interface DoubleIterationMonitorr - Residual-vectorx - State-vectorIterativeSolverDoubleNotConvergedExceptionpublic boolean converged(double r,
DoubleMatrix1D x)
throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitorconverged in interface DoubleIterationMonitorr - Residual-normx - State-vectorIterativeSolverDoubleNotConvergedExceptionpublic boolean converged(double r)
throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitorconverged in interface DoubleIterationMonitorr - Residual-normIterativeSolverDoubleNotConvergedExceptionpublic boolean converged(DoubleMatrix1D r) throws IterativeSolverDoubleNotConvergedException
DoubleIterationMonitorconverged in interface DoubleIterationMonitorr - Residual-vectorIterativeSolverDoubleNotConvergedExceptionpublic Norm getNormType()
DoubleIterationMonitorgetNormType in interface DoubleIterationMonitorpublic void setNormType(Norm normType)
DoubleIterationMonitorsetNormType in interface DoubleIterationMonitorpublic DoubleIterationReporter getIterationReporter()
DoubleIterationMonitorgetIterationReporter in interface DoubleIterationMonitorpublic void setIterationReporter(DoubleIterationReporter monitor)
DoubleIterationMonitorsetIterationReporter in interface DoubleIterationMonitorpublic double residual()
DoubleIterationMonitorresidual in interface DoubleIterationMonitorJump to the Parallel Colt Homepage