|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.openai.ai.ga.selection.common.SelectFitnessRange
SelectFitnessRange is a SelectionAlgorithm
that will return a portion of the passed Population that
have a fitness in the given range.
| Constructor Summary | |
SelectFitnessRange(double lowerBound,
boolean lowerExclusive,
double upperBound,
boolean upperExclusive)
Creates a new SelectFitnessRange object for choosing
the Cells out of the specified Population who
have a fitness in the specified range, specified with whether each
bound is treated inclusive or exclusive. |
|
SelectFitnessRange(double lowerBound,
double upperBound)
Creates a new SelectFitnessRange object for choosing
the Cells out of the specified Population who
have a fitness in the specified range, inclusive. |
|
| Method Summary | |
Population |
selectFromPopulation(Population pop)
Chooses the Cells in the specified Population
with fitness in a given range. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SelectFitnessRange(double lowerBound,
double upperBound)
SelectFitnessRange object for choosing
the Cells out of the specified Population who
have a fitness in the specified range, inclusive. (Equilivant to
SelectFitnessRange(lowerBound, false, upperBound, false)).
lowerBound - the lower bound of the fitness range to allow, inclusiveupperBound - the upper bound of the fitness range to allow, inclusive
ArithmeticException - on lowerBound>upperBound
public SelectFitnessRange(double lowerBound,
boolean lowerExclusive,
double upperBound,
boolean upperExclusive)
SelectFitnessRange object for choosing
the Cells out of the specified Population who
have a fitness in the specified range, specified with whether each
bound is treated inclusive or exclusive.
lowerBound - the lower bound of the fitness range to allowlowerExclusive - false lowerBound is inclusive
true lowerBound is exclusiveupperBound - the upper bound of the fitness range to allowupperExclusive - false upperBound is inclusive
true upperrBound is exclusive
ArithmeticException - on lowerBound>upperBound| Method Detail |
public Population selectFromPopulation(Population pop)
Cells in the specified Population
with fitness in a given range. There is no limit to the number of
members returned; it is possible that no cells are returned (when none
meet the range requirements) or that all the cells are returned (when
they all meet the requirements).
selectFromPopulation in interface SelectionAlgorithmpop - the Population to choose from
Population in arbitrary order
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||