Click or drag to resize
Accord.NET (logo)

IChromosomeCreateNew Method

Create new random chromosome with same parameters (factory method).

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

Return Value

Type: IChromosome
Remarks

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

See Also