PGAHammingDistance(5)

PGAHammingDistance5

Calculates the mean hamming distance for a population of binary strings.

Usage

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

Overview

For all other data types returns a value of 0.0 and prints a warning message.

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

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.