public class TournamentSelection extends java.lang.Object implements Selection
This class implements the tournament selection method.
Constructor and Description |
---|
TournamentSelection()
Creates a TournamentSelection object
|
Modifier and Type | Method and Description |
---|---|
void |
init(Population correctSet)
Initializes the tournament selection.
|
Classifier |
makeSelection(Population correctSet)
Applies the tournament selection.
|
public TournamentSelection()
public void init(Population correctSet)
public Classifier makeSelection(Population correctSet)
makeSelection
in interface Selection
correctSet
- is the population.