Function PGACharacterGeneDistance
Defined in File char.c
Function Documentation
-
double PGACharacterGeneDistance(PGAContext *ctx, int p1, int pop1, int p2, int pop2)
Compute genetic difference of two strings.
Description
Return sum of the absolute values of the differences of each allele. 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