|
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.FitnessTruncationSelector
Truncation selection by fitness value. This operator selects all individuals that have a better fitness than the given threshold.
Field Summary | |
protected IFitnessComparator |
comparator
Fitness comparator. |
protected IFitness |
threshold
Threshold fitness value. |
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 | |
FitnessTruncationSelector()
Comparator. |
|
FitnessTruncationSelector(int numberPerSelection,
IFitness threshold,
IFitnessComparator comparator)
Constructor with number per selection and threshold. |
Method Summary | |
IFitnessComparator |
getComparator()
Gets the fitness comparator. |
IFitness |
getThreshold()
Gets the threshold. |
void |
setComparator(IFitnessComparator comparator)
Sets the fitness comparator. |
void |
setThreshold(IFitness 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 IFitness threshold
protected IFitnessComparator comparator
Constructor Detail |
public FitnessTruncationSelector()
public FitnessTruncationSelector(int numberPerSelection, IFitness threshold, IFitnessComparator comparator)
numberPerSelection
- number of individuals per selectionthreshold
- threshold fitness valuecomparator
- fitness comparatorMethod Detail |
protected int threshold(IIndividual[] pool)
TruncationSelector
threshold
in class TruncationSelector
pool
- selection pool.
TruncationSelector.threshold(org.evolvica.core.IIndividual[])
public void setThreshold(IFitness threshold)
threshold
- new thresholdpublic IFitness getThreshold()
public IFitnessComparator getComparator()
public void setComparator(IFitnessComparator comparator)
comparator
- fitness 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 |