|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.features.selection.RouletteWheel
public class RouletteWheel
Selects a given fixed number of individuals by subdividing a roulette wheel in sections of size proportional to the individuals' fitness values. Optionally keep the best individual.
| Constructor Summary | |
|---|---|
RouletteWheel(int popSize,
boolean keepBest,
java.util.Random random)
|
|
| Method Summary | |
|---|---|
double |
filterFitness(double fitness)
Subclasses may override this method and recalculate the fitness based on the given one, e.g. |
void |
operate(Population population)
Modifies the population. |
boolean |
performOperation(int generation)
The default implementation returns true for every generation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RouletteWheel(int popSize,
boolean keepBest,
java.util.Random random)
| Method Detail |
|---|
public boolean performOperation(int generation)
performOperation in interface PopulationOperatorpublic double filterFitness(double fitness)
public void operate(Population population)
PopulationOperator
operate in interface PopulationOperator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||