Function PGACheckSum
Defined in File utility.c
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 PGAHashPGA_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