public static final class SelectionFunction.SelectAll extends Object implements SelectionFunction
SelectionFunction.SelectAll, SelectionFunction.ThresholdDEFAULT| Constructor and Description |
|---|
SelectAll() |
| Modifier and Type | Method and Description |
|---|---|
FitnessFunction |
getFitnessFunction() |
Population |
select(Population pop,
GeneticAlgorithm genAlg)
Selects a
Population of Organisms for
replication based on their fitness. |
void |
setFitnessFunction(FitnessFunction func) |
public SelectAll()
public Population select(Population pop, GeneticAlgorithm genAlg)
SelectionFunctionPopulation of Organisms for
replication based on their fitness.select in interface SelectionFunctionpop - the Population to select from.genAlg - the parent GeneticAlgorithm.Organisms selectedpublic FitnessFunction getFitnessFunction()
UnsupportedOperationException - as there is no FitnessFunction for this classpublic void setFitnessFunction(FitnessFunction func) throws ChangeVetoException
func - you could try this but it will throw a
ChangeVetoExceptionChangeVetoException - you Cannot set the FitnessFunction of a
SelectAll SelectionFunction"Copyright © 2020 BioJava. All rights reserved.