|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectOperator.Operations.SelectionOperation
Operator.Operations.RouletteWheel
Operator.Operations.ProportionalRouletteWheel
public class ProportionalRouletteWheel
Roulette wheel selection based on fitness proprtional selection. it uses assigns probabilities as 1/(1-fitness) where the smaller the value the more likely it is to be selected
Field Summary |
---|
Fields inherited from class Operator.Operations.RouletteWheel |
---|
accProbs, minFit, rng, smallFit, sumFit |
Fields inherited from class Operator.Operations.SelectionOperation |
---|
selectedPopulation, size |
Constructor Summary | |
---|---|
ProportionalRouletteWheel()
New instance |
|
ProportionalRouletteWheel(int size,
RandomNumberGenerator rng)
New instance |
Method Summary | |
---|---|
protected void |
calculateAccumulatedFitnessProbabilities(java.util.List<Individual> operands)
Min fitness is the best fitness. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class Operator.Operations.RouletteWheel |
---|
calculateFitnessSum, doOperation, doOperation, getRNG, rankPopulation, setProperties, setRNG, spinRoulette |
Methods inherited from class Operator.Operations.SelectionOperation |
---|
getSelectedPopulation, getSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Util.Random.Stochastic |
---|
getRNG, setRNG |
Constructor Detail |
---|
public ProportionalRouletteWheel(int size, RandomNumberGenerator rng)
size
- size of selectionrng
- random number generatorpublic ProportionalRouletteWheel()
Method Detail |
---|
protected void calculateAccumulatedFitnessProbabilities(java.util.List<Individual> operands)
calculateAccumulatedFitnessProbabilities
in class RouletteWheel
operands
- Individuals to take into accountpublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |