Initializes a new instance of the ExtendedGeneFunction class.

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

Syntax

C#
public ExtendedGeneFunction(
	int variablesCount,
	GPGeneType type
)

Parameters

variablesCount
Type: System..::.Int32
Total amount of variables in the task which is supposed to be solved.
type
Type: AForge.Genetic..::.GPGeneType
Gene type to set.

Remarks

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

See Also