Calculates the mean hamming distance for a population of binary strings.
For all other data types returns a value of 0.0 and prints a warning message.
- context variable
- symbolic constant of the population for which the Hamming distance is to be calculated Output: The mean Hamming distance in the population
#include "pgapack.h" double PGAHammingDistance(ctx, popindex) PGAContext *ctx int popindex
: hd = PGAHammingDistance(ctx, PGA_NEWPOP);