Function PGAGetBinaryInitProb

Function Documentation

double PGAGetBinaryInitProb(PGAContext *ctx)

Return the probability that an allele will be randomly initialized to “1” for data type binary.

Description

This is used during string creation of a PGA_DATATYPE_BINARY string.

Example

PGAContext *ctx;
double prob;

...
prob = PGAGetBinaryInitProb (ctx);

Parameters
  • ctx – context variable

Returns

The probability that a bit will be randomly initialized to one