public class RouletteSelection extends java.lang.Object implements Selection
This class implements Roulette Selection.
Constructor and Description |
---|
RouletteSelection()
Creates a RouletteSelection object.
|
Modifier and Type | Method and Description |
---|---|
void |
init(Population pop)
It creates and initializes the roulette with the fitness of all
classifiers in the population.
|
Classifier |
makeSelection(Population pop)
Performs the roulette wheel selection
|
public void init(Population pop)
public Classifier makeSelection(Population pop)
makeSelection
in interface Selection
pop
- is the population.