mss.ea.sel
Class ScoreTruncationSelection
java.lang.Object
|
+--mss.ea.core.GeneticOperator
|
+--mss.ea.sel.Selection
|
+--mss.ea.sel.TruncationSelection
|
+--mss.ea.sel.ScoreTruncationSelection
- All Implemented Interfaces:
- SingleStreamProcessor, StreamProcessor
- public class ScoreTruncationSelection
- extends TruncationSelection
Truncation selection by score.
This operator selects all individuals that have a better score than the given threshold.
- Since:
- 0.1
- Version:
- 0.1 (06-03-2001)
- Author:
- Andreas Rummler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
threshold
protected Score threshold
- Score threshold.
ScoreTruncationSelection
public ScoreTruncationSelection(int numberPerSelection)
- Constructor with number per selection.
- Parameters:
numberPerSelection
- number of individuals per selection
ScoreTruncationSelection
public ScoreTruncationSelection(int numberPerSelection,
Score threshold)
- Constructor with number per selection and threshold.
- Parameters:
numberPerSelection
- number of individuals per selectionthreshold
- threshold score
setThreshold
public void setThreshold(Score s)
- Sets the threshold.
- Parameters:
s
- new threshold
getThreshold
public Score getThreshold()
- Gets the threshold.
- Returns:
- current threshold
getThresholdIndex
protected int getThresholdIndex(IndividualStream is)
- Overrides:
getThresholdIndex
in class TruncationSelection
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS