Package org.biojavax.ga.functions
Class SelectionFunction.Threshold
java.lang.Object
org.biojavax.ga.functions.SelectionFunction.Threshold
- All Implemented Interfaces:
SelectionFunction
- Enclosing interface:
- SelectionFunction
Selects individuals who's fitness exceeds a threshold value.
- Version:
- 1.0
- Author:
- Mark Schreiber
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojavax.ga.functions.SelectionFunction
SelectionFunction.SelectAll, SelectionFunction.Threshold -
Field Summary
Fields inherited from interface org.biojavax.ga.functions.SelectionFunction
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleselect(Population pop, GeneticAlgorithm genAlg) Selects individuals whose fitness (as determined by theFitnessFunction) is more than the cutoff.
-
Constructor Details
-
Threshold
-
-
Method Details
-
getCutoff
-
select
Selects individuals whose fitness (as determined by theFitnessFunction) is more than the cutoff. Removes those that aren't.- Specified by:
selectin interfaceSelectionFunction- Parameters:
pop- thePopulationto select from.genAlg- the parentGeneticAlgorithm- Returns:
- the
Populationof selected individuals.
-