Function PGACheckSum

Function Documentation

int PGACheckSum(PGAContext *ctx, int p, int pop)

Map a string to a number to be used as verification check.

Description

The data type PGA_DATATYPE_USER is not supported. See also the USER function PGAHash PGA_USERFUNCTION_HASH and the hash implementations for individual data types.

Example

PGAContext *ctx;
int p, sum;

...
sum = PGACheckSum (ctx, p, PGA_NEWPOP);

Parameters
  • ctx – context variable

  • p – string index

  • pop – symbolic constant for the population

Returns

An integer representing the “value” of the string