|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse.solver.iterative.CountMonitor
public class CountMonitor
This simple IterationMonitor monitors the number of iterates
generated, hence iterations. Note that the initial guess of solution is added
as the first iterate. Therefore, the count() should normally return
an integer greater than or equal to 1 if the iterative method is performed
without error (or breakdown).
| Constructor Summary | |
|---|---|
CountMonitor()
|
|
| Method Summary | |
|---|---|
void |
addIterate(Vector x)
Add a newly computed iterate to this monitor. |
int |
count()
Get the number of iterates generated by the iterative algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CountMonitor()
| Method Detail |
|---|
public void addIterate(Vector x)
IterationMonitor
addIterate in interface IterationMonitorx - the new iteratepublic int count()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||