jaga.evolve
Interface Selector
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- FitnessProportionateSelector, RankSelector
- public interface Selector
- extends java.io.Serializable
A Selector is in charge of picking individuals from populations according
to certain rules.
Method Summary |
void |
refresh()
can be used to refresh the internal state in the case for example
that the population changed. |
Genotype |
select(Population pop)
picks a genotype from the population through some selection process |
select
public Genotype select(Population pop)
- picks a genotype from the population through some selection process
refresh
public void refresh()
- can be used to refresh the internal state in the case for example
that the population changed. This allows a selector to be optimized
for a certain population by keeping state of it from one call to another