public class UnchangedScore extends UnchangedBase
Constructor and Description |
---|
UnchangedScore() |
Modifier and Type | Method and Description |
---|---|
protected void |
assignPrevious(double score,
int size)
Assigns the previous value to be remembered for comparison next time.
|
int |
getTolerance()
An exponent of 10 which determines a tolerance, less than which a score will be deemed
unchanged compared to another.
|
void |
initialize()
Called before
TerminationCondition.continueFurther(int, double, int, org.anchoranalysis.core.log.MessageLogger) once to setup state in the bean. |
protected boolean |
isUnchanged(double score,
int size)
Whether the current value is unchanged compared to the previous value.
|
void |
setTolerance(int tolerance)
An exponent of 10 which determines a tolerance, less than which a score will be deemed
unchanged compared to another.
|
continueFurther
getIterations, setIterations
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void initialize()
TerminationCondition
TerminationCondition.continueFurther(int, double, int, org.anchoranalysis.core.log.MessageLogger)
once to setup state in the bean.
If called again, it resets the current state.
initialize
in class UnchangedBase
protected void assignPrevious(double score, int size)
UnchangedBase
assignPrevious
in class UnchangedBase
protected boolean isUnchanged(double score, int size)
UnchangedBase
isUnchanged
in class UnchangedBase
public int getTolerance()
public void setTolerance(int tolerance)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.