Click or drag to resize
Accord.NET (logo)

IGPGeneCreateNew Method (GPGeneType)

Creates new gene with certain type and random value.

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

Parameters

type
Type: Accord.GeneticGPGeneType
Gene type to create.

Return Value

Type: IGPGene
Remarks

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

See Also