public class RouletteSelection extends java.lang.Object implements Selection
This class implements Selection roulette.
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)
It creates and initializes the roulette with the fitness of all classifiers in the population.
public Classifier makeSelection(Population pop)
Performs the roulette wheel selection
makeSelection
in interface Selection
pop
- is the population.