public final class MaxErrorCondition extends Object implements StopCondition
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_MAX_ERROR |
| Constructor and Description |
|---|
MaxErrorCondition(GradientDescent algorithm)
Creates a new stop condition using default value for the maximum
acceptable error.
|
MaxErrorCondition(GradientDescent algorithm,
double maxError)
Creates a new stop condition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNotSatisfied()
Returns
true is this condition is not satisfied. |
boolean |
isSatisfied()
Returns
true is this condition is satisfied. |
String |
toString() |
public static final double DEFAULT_MAX_ERROR
public MaxErrorCondition(GradientDescent algorithm, double maxError)
algorithm - The algorithm which should be monitored.maxError - The maximum acceptable error.public MaxErrorCondition(GradientDescent algorithm)
algorithm - The algorithm which should be monitored.public boolean isSatisfied()
StopConditiontrue is this condition is satisfied.isSatisfied in interface StopConditiontrue - if this condition is satisfied false - otherwise public boolean isNotSatisfied()
StopConditiontrue is this condition is not satisfied.isNotSatisfied in interface StopConditiontrue - if this condition is not satisfied false - otherwise Copyright © 2012. All Rights Reserved.