public static final class SelectionFunction.Threshold extends Object implements SelectionFunction
Selects individuals who's fitness exceeds a threshold value.
SelectionFunction.SelectAll, SelectionFunction.ThresholdDEFAULT| Constructor and Description |
|---|
Threshold(double cutoff) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCutoff() |
Population |
select(Population pop,
GeneticAlgorithm genAlg)
Selects individuals whose fitness (as determined by the
FitnessFunction) is more than the cutoff. |
public Threshold(double cutoff)
public double getCutoff()
public Population select(Population pop, GeneticAlgorithm genAlg)
FitnessFunction) is more than the cutoff. Removes those
that aren't.select in interface SelectionFunctionpop - the Population to select from.genAlg - the parent GeneticAlgorithmPopulation of selected individuals.Copyright © 2020 BioJava. All rights reserved.