PGASetBinaryAllele(3)

NAME
PGASetBinaryAllele - sets the value of a (binary) allele

INPUT PARAMETERS
ctx - context variable
p   - string index
pop - symbolic constant of the population the string is in
i   - allele index
val - binary value to set the allele to

OUTPUT PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
void  PGASetBinaryAllele(ctx, p, pop, i, val)
PGAContext *ctx
int p
int pop
int i
int val

LOCATION
binary.c

EXAMPLE
Sets the value of the ith bit of string p
in population PGA_NEWPOP to one
PGAContext *ctx;
int p, i;
PGASetBinaryAllele ( ctx, p, PGA_NEWPOP, i, 1 )