|
||||||||||
| 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.SelectMaturityRange
SelectMaturityRange is a SelectionAlgorithm
that will return a portion of the passed Population that
have a maturity in the given range.
| Constructor Summary | |
SelectMaturityRange(int lowerBound,
boolean lowerExclusive,
int upperBound,
boolean upperExclusive)
Creates a new SelectMaturityRange object for choosing
the Cells out of the specified Population who
have a maturity in the specified range, specified with whether each
bound is treated inclusive or exclusive. |
|
SelectMaturityRange(int lowerBound,
int upperBound)
Creates a new SelectMaturityRange object for choosing
the Cells out of the specified Population who
have a maturity in the specified range, inclusive. |
|
| Method Summary | |
Population |
selectFromPopulation(Population pop)
Chooses the Cells in the specified Population
with maturity 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 SelectMaturityRange(int lowerBound,
int upperBound)
SelectMaturityRange object for choosing
the Cells out of the specified Population who
have a maturity in the specified range, inclusive. (Equilivant to
SelectMaturityRange(lowerBound, false, upperBound, false)).
lowerBound - the lower bound of the maturity range to allow, inclusiveupperBound - the upper bound of the maturity range to allow, inclusive
ArithmeticException - on lowerBound>upperBound
public SelectMaturityRange(int lowerBound,
boolean lowerExclusive,
int upperBound,
boolean upperExclusive)
SelectMaturityRange object for choosing
the Cells out of the specified Population who
have a maturity in the specified range, specified with whether each
bound is treated inclusive or exclusive.
lowerBound - the lower bound of the maturity range to allowlowerExclusive - false lowerBound is inclusive
true lowerBound is exclusiveupperBound - the upper bound of the maturity 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 maturity 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 | |||||||||