public static final class SelectionFunction.Threshold extends Object implements SelectionFunction
Selects individuals who's fitness exceeds a threshold value.
SelectionFunction.SelectAll, SelectionFunction.Threshold
DEFAULT
Constructor and Description |
---|
SelectionFunction.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 SelectionFunction.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 SelectionFunction
pop
- the Population
to select from.genAlg
- the parent GeneticAlgorithm
Population
of selected individuals.Copyright © 2014 BioJava. All rights reserved.