Query: pgasetbinaryinitprob
OS: debian
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGASetBinaryInitProb(2) PGAPack PGASetBinaryInitProb(2)NAMEPGASetBinaryInitProb - specify the probability of initializing an allele to "1" when creating a PGA_DATATYPE_BINARY string.DESCRIPTIONThe default value is 0.5.INPUT PARAMETERSctx - context variable p - the binary initialization probabilityOUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" void PGASetBinaryInitProb(ctx, probability) PGAContext *ctx double probabilityLOCATIONbinary.cEXAMPLEExample: Set approximately 1 percent of all binary alleles to "1" when randomly initializing the population. PGAContext *ctx; : PGASetBinaryInitProb(ctx, 0.01); 05/01/95 PGASetBinaryInitProb(2)