@PublicEvolving public class DoubleZeroConvergence extends Object implements ConvergenceCriterion<DoubleValue>
ConvergenceCriterion
over an Aggregator
that defines convergence as reached
once the aggregator holds the value zero. The aggregated data type is a DoubleValue
.Constructor and Description |
---|
DoubleZeroConvergence() |
Modifier and Type | Method and Description |
---|---|
boolean |
isConverged(int iteration,
DoubleValue value)
Returns true, if the aggregator value is zero, false otherwise.
|
public boolean isConverged(int iteration, DoubleValue value)
isConverged
in interface ConvergenceCriterion<DoubleValue>
iteration
- The number of the iteration superstep. Ignored in this case.value
- The aggregator value, which is compared to zero.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.