public interface IterationMonitor
Modifier and Type | Method and Description |
---|---|
boolean |
converged(double r)
Checks for convergence
|
boolean |
converged(double r,
Vector x)
Checks for convergence
|
boolean |
converged(Vector r)
Checks for convergence
|
boolean |
converged(Vector r,
Vector x)
Checks for convergence
|
IterationReporter |
getIterationReporter()
Returns current iteration reporter
|
Vector.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(IterationReporter monitor)
Sets new iteration reporter
|
void |
setNormType(Vector.Norm normType)
Sets the vector-norm to calculate with
|
void setFirst()
boolean isFirst()
void next()
int iterations()
double residual()
boolean converged(Vector r, Vector x) throws IterativeSolverNotConvergedException
r
- Residual-vectorx
- State-vectorIterativeSolverNotConvergedException
boolean converged(double r, Vector x) throws IterativeSolverNotConvergedException
r
- Residual-normx
- State-vectorIterativeSolverNotConvergedException
boolean converged(double r) throws IterativeSolverNotConvergedException
r
- Residual-normIterativeSolverNotConvergedException
boolean converged(Vector r) throws IterativeSolverNotConvergedException
r
- Residual-vectorIterativeSolverNotConvergedException
void setIterationReporter(IterationReporter monitor)
IterationReporter getIterationReporter()
void setNormType(Vector.Norm normType)
Vector.Norm getNormType()
Copyright © 2013. All Rights Reserved.