Function PGAIntegerGeneDistance

Function Documentation

double PGAIntegerGeneDistance(PGAContext *ctx, int p1, int pop1, int p2, int pop2)

Compute genetic distance of two strings.

Description

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