public class EpsTermination extends java.lang.Object implements TerminationCondition
Constructor and Description |
---|
EpsTermination() |
EpsTermination(double eps,
double tolerance) |
Modifier and Type | Method and Description |
---|---|
boolean |
terminate(double cost,
double old,
java.lang.Object[] otherParams)
Whether to terminate based on the given metadata
|
public EpsTermination(double eps, double tolerance)
public EpsTermination()
public boolean terminate(double cost, double old, java.lang.Object[] otherParams)
TerminationCondition
terminate
in interface TerminationCondition
cost
- the new costold
- the old cost