Poster of Linux kernelThe best gift for a Linux geek
PGAGetMutationType

PGAGetMutationType

Section: PGAPack (3) Updated: 05/01/95
Local index Up
 

NAME

PGAGetMutationType - Returns the type of mutation used  

INPUT PARAMETERS

ctx
- context variable
 

OUTPUT PARAMETERS

none

 

SYNOPSIS

#include "pgapack.h"
int  PGAGetMutationType(ctx)
PGAContext *ctx
 

LOCATION

mutation.c  

EXAMPLE

Example:
PGAContext *ctx;
int mutatetype;
:
mutatetype = PGAGetMutationType(ctx);
switch (mutatetype) {
case PGA_MUTATION_CONSTANT:
printf("Mutation Type = PGA_MUTATION_CONSTANT);
break;
case PGA_MUTATION_RANGE:
printf("Mutation Type = PGA_MUTATION_RANGE);
break;
case PGA_MUTATION_UNIFORM:
printf("Mutation Type = PGA_MUTATION_UNIFORM);
break;
case PGA_MUTATION_GAUSSIAN:
printf("Mutation Type = PGA_MUTATION_GAUSSIAN);
break;
case PGA_MUTATION_PERMUTE:
printf("Mutation Type = PGA_MUTATION_PERMUTE);
break;
}


 

Index

NAME
INPUT PARAMETERS
OUTPUT PARAMETERS
SYNOPSIS
LOCATION
EXAMPLE

This document was created by man2html, using the manual pages.
Time: 21:52:25 GMT, April 16, 2011