public class MinimizationStoppingCriterion
extends java.lang.Object
| Constructor and Description |
|---|
MinimizationStoppingCriterion() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
convergence(Vector xnew,
java.lang.Double fxnew,
Vector gradient,
Vector delta,
double tolerance)
Tests for convergence on approximately zero slope and nonmovement along
the x-axis
|
public static boolean convergence(Vector xnew, java.lang.Double fxnew, Vector gradient, Vector delta, double tolerance)
xnew - Present x-axis valuefxnew - Present y-value at xnew, may be null if unknowngradient - Gradient at the new pointdelta - Change in x-axis between iterationstolerance - Tolerance of the stopping criterion, typically ~1e-5