|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.util.selection.recipes.RandomSelection<E>
E
- public class RandomSelection<E>
Perform a random selection from the provided list of elements.
Random selection is performed by:
Constructor Summary | |
---|---|
RandomSelection()
Create a new instance. |
|
RandomSelection(Random random)
Create a new instance with the provided Random . |
|
RandomSelection(RandomSelection copy)
Create a copy of the provided instance. |
Method Summary | |
---|---|
RandomSelection |
getClone()
Create a cloned copy of the current object and return it. |
E |
select(List<? extends E> elements)
Perform the selection process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomSelection()
public RandomSelection(Random random)
Random
.
random
- The random
to use.public RandomSelection(RandomSelection copy)
copy
- The instance to copy.Method Detail |
---|
public RandomSelection getClone()
getClone
in interface Cloneable
getClone
in interface SelectionRecipe<E>
Object.clone()
public E select(List<? extends E> elements)
select
in interface SelectionRecipe<E>
elements
- The elements to perfrom the selection on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |