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

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

Creates new gene with certain type and random value.

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.

public CreateNew ( GPGeneType type ) : IGPGene
type GPGeneType Gene type to create.
Результат IGPGene
        public IGPGene CreateNew( GPGeneType type )
        {
            return new ExtendedGeneFunction( variablesCount, type );
        }
    }

Same methods

ExtendedGeneFunction::CreateNew ( ) : IGPGene