|
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
Abstract base class for a truncation selection. A truncation selection only selects individuals, which have got an attribute above a particular threshold. The threshold can be percentage value, the score or a fitness value. Individuals below the threshold have got the selection probability of 0. Individuals above are selected randomly.
Field Summary |
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 | |
TruncationSelector(int numberPerSelection)
Constructor with number per selection. |
Method Summary | |
IIndividual[] |
select(IIndividual[] pool)
Selects individuals out of a given selection pool. |
protected abstract int |
threshold(IIndividual[] pool)
Calculates the truncation threshold. |
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 |
Constructor Detail |
public TruncationSelector(int numberPerSelection)
numberPerSelection
- number how many individuals are selectedMethod Detail |
public IIndividual[] select(IIndividual[] pool)
AbstractSelector
select
in class AbstractSelector
pool
- selection pool
AbstractSelector.select(org.evolvica.core.IIndividual[])
protected abstract int threshold(IIndividual[] pool)
pool
- selection pool.
|
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 |