Function PGAGetRealAllele
Defined in File real.c
Function Documentation
-
double PGAGetRealAllele(PGAContext *ctx, int p, int pop, int i)
Return the value of real-valued allele i in string p in population pop.
Example
Returns the value of real-valued allele
i
of stringp
in populationPGA_NEWPOP
PGAContext *ctx; int p, i double d; ... d = PGAGetRealAllele (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