|
||||||||||
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.SelectComplement
SelectComplement
is a SelectionAlgorithm
that will return the complement of the results of two specified
SelectionAlgorithm
s.
Constructor Summary | |
SelectComplement(SelectionAlgorithm toComplement)
Creates a new SelectComplement object for taking the
complement of the Population s returned by the two
passed SelectionAlgorithm s. |
Method Summary | |
Population |
selectFromPopulation(Population pop)
Returns a Population that represents the complement
(disjunction) of the SelectionAlgorithm specified in
the constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SelectComplement(SelectionAlgorithm toComplement)
SelectComplement
object for taking the
complement of the Population
s returned by the two
passed SelectionAlgorithm
s.
toComplement
- the first SelectionAlgorithm
Method Detail |
public Population selectFromPopulation(Population pop)
Population
that represents the complement
(disjunction) of the SelectionAlgorithm
specified in
the constructor. The return is a new Population
clone of
the specified Population
with all results of the selection
algorithm removed from it via the Population.removeCells
method.
selectFromPopulation
in interface SelectionAlgorithm
pop
- the Population
to choose from
Population
of the selection
algorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |