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

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

Randomize gene with random type and value.

The method randomizes the gene, setting its type and value randomly.

public Generate ( ) : void
Результат void
        public void Generate( )
        {
            // give more chance to function
            Generate( ( rand.Next( 4 ) == 3 ) ? GPGeneType.Argument : GPGeneType.Function );
        }

Same methods

SimpleGeneFunction::Generate ( GPGeneType type ) : void