Function PGAGetIntegerAllele
Defined in File integer.c
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 stringp
in populationPGA_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