org.biojavax.ga.functions
Class SelectionFunction.Threshold
java.lang.Object
org.biojavax.ga.functions.SelectionFunction.Threshold
- All Implemented Interfaces:
- SelectionFunction
- Enclosing interface:
- SelectionFunction
public static final class SelectionFunction.Threshold
- extends Object
- implements SelectionFunction
Selects individuals who's fitness exceeds a threshold value.
- Version:
- 1.0
- Author:
- Mark Schreiber
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectionFunction.Threshold
public SelectionFunction.Threshold(double cutoff)
getCutoff
public double getCutoff()
select
public Population select(Population pop,
GeneticAlgorithm genAlg)
- Selects individuals whose fitness (as determined by the
FitnessFunction) is more than the cutoff. Removes those
that aren't.
- Specified by:
select in interface SelectionFunction
- Parameters:
pop - the Population to select from.genAlg - the parent GeneticAlgorithm
- Returns:
- the
Population of selected individuals.