|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.features.selection.StochasticUniversalSampling
public class StochasticUniversalSampling
Similar to a the roulette wheel selection the fitness values of all individuals build a partition of the 360 degrees of a wheel. The wheel is turned only once and the individuals are selected based on equidistant marks on the wheel. Optionally the best individual is also kept.
| Constructor Summary | |
|---|---|
StochasticUniversalSampling(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 StochasticUniversalSampling(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 | |||||||||