Function PGARealGeneDistance
Defined in File real.c
Function Documentation
-
double PGARealGeneDistance(PGAContext *ctx, int p1, int pop1, int p2, int pop2)
Compute genetic difference of two strings.
Description
Sum of the absolute values of the differences of each allele. So this is a Manhattan distance (mainly for performance reasons). Internal function. Use
PGAUserFunctionGeneDistance()
.- Parameters:
ctx – context variable
p1 – first string index
pop1 – symbolic constant of the population the first string is in
p2 – second string index
pop2 – symbolic constant of the population the second string is in
- Returns:
genetic distance of the two strings