GEP::Core::Common::GeneticOperators::GenotypeSelection::RandomAccordingToMatingProabability Class Reference

Represents a roulette wheel, where every genotype has a sector with the length of its Genotype.MatingProbability. More...

Inheritance diagram for GEP::Core::Common::GeneticOperators::GenotypeSelection::RandomAccordingToMatingProabability:

Inheritance graph
[legend]
Collaboration diagram for GEP::Core::Common::GeneticOperators::GenotypeSelection::RandomAccordingToMatingProabability:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RandomAccordingToMatingProabability (int selectionSize, int n_selections, double[] probabilityDistribution)
int[][] Select (Population population)
 Selects genotypes from population .
int[][] Select (ref int selectionStartIndex, ref int selectionEndIndex, Population population)
 Selects genotypes from population .

Protected Attributes

int _selectionSize
 The number of indexes in a selection.
int _n_selections
 The number of selections.
int[][] _selection
 The array returned by RandomAccordingToMatingProabability.Select.
int[][][] _allSelections
 Every time RandomAccordingToMatingProabability.Select is called, sub-arrays of this array are returned consecutively.
int[] _allSelectionsSize
 The length of all selections corresponding to _allSelections.
int[] _allSelectionsStartIndex
 The starting indexes of selections.
int[] _allSelectionsEndIndex
 The ending indexes of selections.
int _allSelectionIndex
 The index of the current selection from _allSelections to be returned by GeneticOperator.Apply.
Random _random = new Random()
 Used to generate random numbers.


Detailed Description

Represents a roulette wheel, where every genotype has a sector with the length of its Genotype.MatingProbability.

This selection is usually used for OnePointCrossover and TwoPointCrossover, where every time one of them is applied. The choice which one is going to be applied is based on _probabilityDistribution.

Definition at line 16 of file RandomAccordingToMatingProabability.cs.


The documentation for this class was generated from the following file:
GEP .NET Framwork Main Page
SourceForge.net Logo