|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.core.GeneticOperator | +--mss.ea.sel.Selection | +--mss.ea.sel.RandomSelection
Random Selection.
Field Summary | |
protected java.util.Random |
rand
Random generator. |
Fields inherited from class mss.ea.sel.Selection |
multSelection, numberPerSelection |
Fields inherited from class mss.ea.core.GeneticOperator |
description, ID, name |
Constructor Summary | |
RandomSelection(int numberPerSelection)
Constructor with number per selection. |
|
RandomSelection(int numberPerSelection,
boolean allowMultipleSelection)
Constructor number per selection and multiple selection flag. |
Method Summary | |
IndividualStream |
select(IndividualStream is)
Abstract select method. |
Methods inherited from class mss.ea.sel.Selection |
getSelectionSize, process, setSelectionSize |
Methods inherited from class mss.ea.core.GeneticOperator |
getDescription, getID, getName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface mss.ea.core.StreamProcessor |
getName |
Field Detail |
protected java.util.Random rand
Constructor Detail |
public RandomSelection(int numberPerSelection)
numberPerSelection
- number how many individuals are selectedpublic RandomSelection(int numberPerSelection, boolean allowMultipleSelection)
numberPerSelection
- number how many individuals are selectedallowMultipleSelection
- state of the multiple selection flagMethod Detail |
public IndividualStream select(IndividualStream is)
Selection
select
in class Selection
mss.ea.sel.Selection
is
- stream of individuals to select fromSelectionException
- thrown in case the selection mechanism fails
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |