Initializes a new instance of the SimpleGeneFunction class.

Namespace:  AForge.Genetic
Assembly:  AForge.Genetic (in AForge.Genetic.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public SimpleGeneFunction(
	int variablesCount
)

Parameters

variablesCount
Type: System..::.Int32
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