Click or drag to resize
Accord.NET (logo)

ChromosomeBaseCreateNew 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
public abstract IChromosome CreateNew()
Request Example View Source

Return Value

Type: IChromosome

Implements

IChromosomeCreateNew
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