C# 클래스 Accord.Genetic.RouletteWheelSelection

Roulette wheel selection method.

The algorithm selects chromosomes to the new generation according to their fitness values - the more fitness value chromosome has, the more chances it has to become member of new generation. Each chromosome can be selected several times to the new generation.

The "roulette's wheel" is divided into sectors, which size is proportional to the fitness values of chromosomes - the size of the wheel is the sum of all fitness values, size of each sector equals to fitness value of chromosome.

상속: ISelectionMethod
파일 보기 프로젝트 열기: accord-net/framework

공개 메소드들

메소드 설명
ApplySelection ( List chromosomes, int size ) : void

Apply selection to the specified population.

Filters specified population keeping only those chromosomes, which won "roulette" game.

RouletteWheelSelection ( ) : System

Initializes a new instance of the RouletteWheelSelection class.

메소드 상세

ApplySelection() 공개 메소드

Apply selection to the specified population.
Filters specified population keeping only those chromosomes, which won "roulette" game.
public ApplySelection ( List chromosomes, int size ) : void
chromosomes List Population, which should be filtered.
size int The amount of chromosomes to keep.
리턴 void

RouletteWheelSelection() 공개 메소드

Initializes a new instance of the RouletteWheelSelection class.
public RouletteWheelSelection ( ) : System
리턴 System