Click or drag to resize
Accord.NET (logo)

SimpleGeneFunctionCreateNew Method

Creates new gene with random type and value.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public IGPGene CreateNew()
Request Example View Source

Return Value

Type: IGPGene

Implements

IGPGeneCreateNew
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