Click or drag to resize

TournamentSelectionTNewGeneration Method

This method is called by genetic algorithm one time per generation before selection occurs.

Namespace:  FinMath.MachineLearning.EvolutionaryAlgorithms
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public override void NewGeneration(
	T[] population,
	double[] fitness,
	int selectionAmount
)

Parameters

population
Type: T
Array of individuals.
fitness
Type: SystemDouble
Array of fitness of a generation.
selectionAmount
Type: SystemInt32
Amount of individuals involved in selection. Algorithm should return individuals from range [0, selectionAmount].
See Also