Function PGAGetNAMWindowSize
Defined in File select.c
Function Documentation
-
int PGAGetNAMWindowSize(PGAContext *ctx)
Get window size for negative assortative mating (NAM).
Description
On selection select first individual as configured, for the second individual draw wsize individuals and select the one that has the largest genetic difference to the first individual. The default window size 1 doesn’t use NAM. See description [FR01]. This gets the currently configured NAM window size.
Example
PGAContext *ctx, int wsize; ... wsize = PGAGetNAMWindowSize (ctx);
- Parameters:
ctx – context variable
- Returns:
Window size for NAM