AForge.Genetic.SimpleGeneFunction.CreateNew C# (CSharp) Метод

CreateNew() публичный Метод

Creates new gene with random type and value.

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.

public CreateNew ( ) : IGPGene
Результат IGPGene
        public IGPGene CreateNew( )
        {
            return new SimpleGeneFunction( variablesCount );
        }

Same methods

SimpleGeneFunction::CreateNew ( GPGeneType type ) : IGPGene