PGASetBinaryInitProb(3)

PGASetBinaryInitProb3

Specify the probability of initializing an allele to "1" when creating a pga_datatype_binary string. the default value is 0.5.

Usage

#include "pgapack.h"
void  PGASetBinaryInitProb(ctx, probability)
PGAContext *ctx
double probability

Input parameters

ctx

- context variable

p

- the binary initialization probability

Output parameters

none

Location

binary.c

Examples

Example:
Set approximately 1 percent of all binary alleles to "1" when randomly
initializing the population.
PGAContext *ctx;
:
PGASetBinaryInitProb(ctx, 0.01);

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.