.TH PGAGetFitnessType 1 "05/01/95" " " "PGAPack" .SH NAME PGAGetFitnessType \- Returns the type of fitness transformation used. .SH INPUT PARAMETERS .PD 0 .TP ctx - context variable .PD 1 .SH OUTPUT PARAMETERS .PD 0 .TP none .PD 1 .SH SYNOPSIS .nf #include "pgapack.h" int PGAGetFitnessType(ctx) PGAContext *ctx .fi .SH LOCATION fitness.c .SH EXAMPLE .nf Example: PGAContext *ctx; int fittype; : fittype = PGAGetFitnessType(ctx); switch (fittype) { case PGA_FITNESS_RAW: printf("Fitness Type = PGA_FITNESS_RAW\n"); break; case PGA_FITNESS_NORMAL: printf("Fitness Type = PGA_FITNESS_NORMAL\n"); break; case PGA_FITNESS_RANKING: printf("Fitness Type = PGA_FITNESS_RANKING\n"); break; } .fi