Click or drag to resize
Accord.NET (logo)

SimpleGeneFunctionGenerate Method (GPGeneType)

Randomize gene with random value.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public void Generate(
	GPGeneType type
)
Request Example View Source

Parameters

type
Type: Accord.GeneticGPGeneType
Gene type to set.

Implements

IGPGeneGenerate(GPGeneType)
Remarks

The method randomizes a gene, setting its value randomly, but type is set to the specified one.

See Also