Click or drag to resize

RouletteSelectionT Class

Roulette selection chooses parents by simulating a roulette wheel, in which the area of the section of the wheel corresponding to an individual is proportional to the individual's scaled fitness. The algorithm uses a random number to select one of the sections with a probability equal to its area.
Inheritance Hierarchy
SystemObject
  FinMath.MachineLearning.EvolutionaryAlgorithmsSelectionAlgorithmT
    FinMath.MachineLearning.EvolutionaryAlgorithmsRouletteSelectionT

Namespace:  FinMath.MachineLearning.EvolutionaryAlgorithms
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public class RouletteSelection<T> : SelectionAlgorithm<T>

Type Parameters

T
Individual's type.

The RouletteSelectionT type exposes the following members.

Constructors
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNewGeneration
This method is called by genetic algorithm one time per generation before selection occurs.
(Overrides SelectionAlgorithmTNewGeneration(T, Double, Int32).)
Public methodSelect
This method is called each time genetic algorithm needs a parent for crossover.
(Overrides SelectionAlgorithmTSelect.)
Public methodSelect(T, T)
This method is called each time genetic algorithm needs two parents for crossover. This method calls Select() two times by default.
(Inherited from SelectionAlgorithmT.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also