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

# PGAGetCrossoverProb(3)

Returns the crossover probability

## NAME

PGAGetCrossoverProb - Returns the crossover probability

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

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

## LOCATION

cross.c

## EXAMPLE

```
Example:
PGAContext *ctx;
double pc;
:
pc = PGAGetCrossoverProb(ctx);
```
