Poster of Linux kernelThe best gift for a Linux geek
PGASetMutationProb

PGASetMutationProb

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

NAME

PGASetMutationProb - Specifies the probability that a given allele will be mutated.  

DESCRIPTION

If this is called without calling PGASetMutationType(), the default mutation type is PGA_MUTATION_FIXED. The default probability is the reciprocal of the string length.  

INPUT PARAMETERS

ctx
- context variable
p
- the mutation probability
 

OUTPUT PARAMETERS

none

 

SYNOPSIS

#include "pgapack.h"
void  PGASetMutationProb(ctx, mutation_prob)
PGAContext *ctx
double mutation_prob
 

LOCATION

mutation.c  

EXAMPLE

Example:
PGAContext *ctx;
:
PGASetMutationProb(ctx,0.001);


 

Index

NAME
DESCRIPTION
INPUT PARAMETERS
OUTPUT PARAMETERS
SYNOPSIS
LOCATION
EXAMPLE

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