Function PGAGetIntegerAllele

Function Documentation

int PGAGetIntegerAllele(PGAContext *ctx, int p, int pop, int i)

Return the value of allele i of member p in population pop.

Description

Assumes the data type is PGA_DATATYPE_INTEGER.

Example

Returns the value of integer allele i of string p in population PGA_NEWPOP.

PGAContext *ctx;
int p, i, k;

...
k =  PGAGetIntegerAllele (ctx, p, PGA_NEWPOP, i)

Parameters
  • ctx – context variable

  • p – string index

  • pop – symbolic constant of the population the string is in

  • i – allele index

Returns

The value of allele i in string p