Creates new gene with random type and value.

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

Syntax

C#
public IGPGene CreateNew()

Return Value

[Missing <returns> documentation for M:AForge.Genetic.ExtendedGeneFunction.CreateNew]

Implements

IGPGene..::.CreateNew()()()

Remarks

The method creates new randomly initialized gene . The method is useful as factory method for those classes, which work with gene's interface, but not with particular gene class.

See Also