|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.trm.AbstractStreamCondition | +--mss.ea.trm.ScoreStreamCondition | +--mss.ea.trm.RunningMeanStreamCondition
Termination dependent on the running mean value. The termination condition is fulfilled, if current best score - mean value of best score of last n generations falls under a particular threshold. The threshold and the number of generations can be specified in the constructor.
Field Summary | |
protected boolean |
arrayFull
Indication, if meanArray is full and the mean value can be calculated. |
protected int |
currentIndex
Index for insertion of the next best score. |
protected double[] |
doubleArray
Array for holding the mean values of the last n generations (double). |
protected float[] |
floatArray
Array for holding the mean values of the last n generations (float). |
protected int |
generations
Number of generations to use for mean value calculation. |
protected int[] |
intArray
Array for holding the mean values of the last n generations (int). |
protected long[] |
longArray
Array for holding the mean values of the last n generations (long). |
protected float |
threshold
Threshold. |
Fields inherited from class mss.ea.trm.ScoreStreamCondition |
DOUBLE, FLOAT, INT, LONG, mode, NONE |
Fields inherited from class mss.ea.trm.AbstractStreamCondition |
comp |
Constructor Summary | |
RunningMeanStreamCondition(float threshold,
int generations)
Constructor. |
Method Summary | |
boolean |
isTrue(IndividualStream is)
Test of break condition. |
Methods inherited from class mss.ea.trm.AbstractStreamCondition |
getComparator, setComparator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected float threshold
protected int generations
protected double[] doubleArray
protected float[] floatArray
protected int[] intArray
protected long[] longArray
protected int currentIndex
protected boolean arrayFull
Constructor Detail |
public RunningMeanStreamCondition(float threshold, int generations)
threshold
- threshold valueMethod Detail |
public boolean isTrue(IndividualStream is)
isTrue
in class AbstractStreamCondition
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |