---
name: "PGAGetBinaryInitProb"
section: "2"
platform: "linux"
package: "pgapack"
version: "1.1.1-3"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAGetBinaryInitProb"
---

# PGAGetBinaryInitProb(2)

Returns the probability that an allele will be randomly initialized to "1" in a PGA\_DATATYPE\_BINARY string.

## NAME

PGAGetBinaryInitProb - Returns the probability that an allele will be randomly initialized to "1" in a PGA\_DATATYPE\_BINARY string.

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
double  PGAGetBinaryInitProb(ctx)
PGAContext *ctx
```

## LOCATION

binary.c

## EXAMPLE

```
Example:
PGAContext *ctx;
double prob;
:
prob = PGAGetBinaryInitProb(ctx);
```
