PGAHammingDistance(3)

PGAHammingDistance3

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.

Usage

#include "pgapack.h"
double  PGAHammingDistance(ctx, popindex)
PGAContext *ctx
int popindex

Input parameters

ctx

- context variable

popindex

- symbolic constant of the population for which the Hamming distance is to be calculated Output: The mean Hamming distance in the population

Output parameters

none

Location

hamming.c

Examples

:
hd = PGAHammingDistance(ctx, PGA_NEWPOP);

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.