Accord.Genetic.ExtendedGeneFunction.Generate C# (CSharp) Method

Generate() public method

Randomize gene with random type and value.

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

public Generate ( ) : void
return void
        public void Generate()
        {
            var rand = Generator.Random;

            // give more chance to function
            Generate((rand.Next(4) == 3) ? GPGeneType.Argument : GPGeneType.Function);
        }

Same methods

ExtendedGeneFunction::Generate ( GPGeneType type ) : void