void GEP::Core::Common::Genotype::Initialize ( Random  random,
Alphabet  functionsSet,
Alphabet  variablesSet,
Alphabet  constantsSet,
double[]  symbolSetsProbabilityDistribution 
) [inline, inherited]

Initializes the _linearStructure with random values.

Parameters:
random Used to generate the random numbers.
functionsSet The set of functions. Functions are Symbols that accept more than 0 arguments.
variablesSet The set of variables. Variables accept 0 prarameters and change value with different variable cases.
constantsSet The set of constants. Constants accept 0 prarameters and don't change value with different variable cases.
symbolSetsProbabilityDistribution Array with two elements. It is the cumulative probability of the functions, variables and constants sets respective to the elements of the array.

The first element is the probability for a function to occur in a place of the genome. The second element is the probability of function to occur plus the probability of a variable to occur. The probability of a constant is 1 minus the second element in the array.

Symbols in an alphabet have equal probability to be chosen.

Definition at line 196 of file Genotype.cs.

References GEP::Core::Common::Alphabet::Length.

GEP .NET Framwork Main Page
SourceForge.net Logo