jhplot.math.num
Interface IterativeMethod.IterativeState

Enclosing class:
IterativeMethod

public static interface IterativeMethod.IterativeState

The current state for an iterative method.


Method Summary
 int getIterations()
          Access the current iteration.
 double getRelativeError()
          Access the current relative error in the evaluation.
 void initialize()
          Initialize the state to begin an iterative evaluation.
 void iterate()
          Perform the next iteration of the iterative evaluation.
 

Method Detail

getIterations

int getIterations()
Access the current iteration.

Returns:
the current iteration.

getRelativeError

double getRelativeError()
Access the current relative error in the evaluation.

Returns:
the current relative error.

initialize

void initialize()
Initialize the state to begin an iterative evaluation.


iterate

void iterate()
             throws NumericException
Perform the next iteration of the iterative evaluation. The current state is updated with the newly computed data.

Throws:
NumericException - if the iteration can not be performed.


jHepWork 3.0 ©