|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.engine.AbstractOperator
org.evolvica.core.common.AbstractGeneticOperator
org.evolvica.core.select.AbstractSelector
org.evolvica.core.select.TruncationSelector
org.evolvica.core.select.ScoreTruncationSelector
Truncation selection by score. This operator selects all individuals that have a better score than the given threshold.
Field Summary | |
protected IScoreComparator |
comparator
Score comparator. |
protected IScore |
threshold
Score threshold. |
Fields inherited from class org.evolvica.core.select.AbstractSelector |
allowMultipleSelection, numberPerSelection |
Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
Constructor Summary | |
ScoreTruncationSelector()
Constructor. |
|
ScoreTruncationSelector(int numberPerSelection,
IScore threshold,
IScoreComparator comparator)
Constructor with number per selection and threshold. |
Method Summary | |
IScoreComparator |
getComparator()
Gets the comparator. |
IScore |
getThreshold()
Gets the threshold. |
void |
setComparator(IScoreComparator comparator)
Sets the comparator. |
void |
setThreshold(IScore threshold)
Sets the threshold. |
protected int |
threshold(IIndividual[] pool)
Calculates the truncation threshold. |
Methods inherited from class org.evolvica.core.select.TruncationSelector |
select |
Methods inherited from class org.evolvica.core.select.AbstractSelector |
getNumberPerSelection, process, setNumberPerSelection |
Methods inherited from class org.evolvica.engine.AbstractOperator |
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.evolvica.engine.IOperator |
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName |
Field Detail |
protected IScore threshold
protected IScoreComparator comparator
Constructor Detail |
public ScoreTruncationSelector()
public ScoreTruncationSelector(int numberPerSelection, IScore threshold, IScoreComparator comparator)
numberPerSelection
- number of individuals per selectionthreshold
- threshold scorecomparator
- score comparatorMethod Detail |
protected int threshold(IIndividual[] pool)
TruncationSelector
threshold
in class TruncationSelector
pool
- selection pool.
TruncationSelector.threshold(org.evolvica.core.IIndividual[])
public void setThreshold(IScore threshold)
threshold
- new thresholdpublic IScore getThreshold()
public IScoreComparator getComparator()
public void setComparator(IScoreComparator comparator)
comparator
- new comparator
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |