Click or drag to resize
Accord.NET (logo)

SimpleGeneFunction Constructor (Int32)

Initializes a new instance of the SimpleGeneFunction class.

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

Parameters

variablesCount
Type: SystemInt32
Total amount of variables in the task which is supposed to be solved.
Remarks

The constructor creates randomly initialized gene with random type and value by calling Generate method.

See Also