Click or drag to resize
Accord.NET (logo)

ExtendedGeneFunctionCreateNew 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
public IGPGene CreateNew(
	GPGeneType type
)
Request Example View Source

Parameters

type
Type: Accord.GeneticGPGeneType
Gene type to create.

Return Value

Type: IGPGene

Implements

IGPGeneCreateNew(GPGeneType)
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