Click or drag to resize
Accord.NET (logo)

ExtendedGeneFunction Constructor (Int32, GPGeneType)

Initializes a new instance of the ExtendedGeneFunction class.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public ExtendedGeneFunction(
	int variablesCount,
	GPGeneType type
)
Request Example View Source

Parameters

variablesCount
Type: SystemInt32
Total amount of variables in the task which is supposed to be solved.
type
Type: Accord.GeneticGPGeneType
Gene type to set.
Remarks

The constructor creates randomly initialized gene with random value and preset gene type.

See Also