Click or drag to resize
Accord.NET (logo)

SimpleGeneFunction Constructor (Int32, GPGeneType)

Initializes a new instance of the SimpleGeneFunction class.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.7.0
Syntax
public SimpleGeneFunction(
	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