|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojavax.ga.functions.SelectionFunction.Threshold
public static final class SelectionFunction.Threshold
Selects individuals who's fitness exceeds a threshold value.
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 | |
---|---|
SelectionFunction.Threshold(double cutoff)
|
Method Summary | |
---|---|
double |
getCutoff()
|
Population |
select(Population pop,
GeneticAlgorithm genAlg)
Selects individuals whose fitness (as determined by the FitnessFunction ) is more than the cutoff. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionFunction.Threshold(double cutoff)
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |