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

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

Initializes a new instance of the ExtendedGeneFunction class.

The constructor creates randomly initialized gene with random value and preset gene type.

public ExtendedGeneFunction ( int variablesCount, GPGeneType type ) : System
variablesCount int Total amount of variables in the task which is supposed /// to be solved.
type GPGeneType Gene type to set.
Результат System
        public ExtendedGeneFunction( int variablesCount, GPGeneType type )
        {
            this.variablesCount = variablesCount;
            // generate the gene value
            Generate( type );
        }

Same methods

ExtendedGeneFunction::ExtendedGeneFunction ( int variablesCount ) : System
ExtendedGeneFunction::ExtendedGeneFunction ( int variablesCount, bool random ) : System