public class AtThreshold extends Object implements StopCondition
Constructor and Description |
---|
AtThreshold(double target,
double epsilon)
Stops when the value reaches a given value with a given precision.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isStopped(Vector x,
double... information)
This is called after each iteration to determine whether the termination conditions are met,
e.g., convergence.
|
public AtThreshold(double target, double epsilon)
target
- the target value to reachepsilon
- a precision parameter: when a number |x| ≤ ε, it is considered 0public boolean isStopped(Vector x, double... information)
StopCondition
isStopped
in interface StopCondition
x
- the current state of the algorithminformation
- auxiliary information, e.g., the energy at a given statetrue
if the iteration should stopCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.