PGASetBinaryInitProb(2)

PGASetBinaryInitProb2

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

Usage

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

Overview

The default value is 0.5.

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

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.