source: trunk/optimizer/src/pgapack/pgapack/man/man1/PGASetCharacterAllele.1 @ 816

Last change on this file since 816 was 816, checked in by liveletlive, 16 years ago

Committing the newer version of PGAPack.

File size: 907 bytes
Line 
1.TH PGASetCharacterAllele 1 "05/01/95" " " "PGAPack"
2.SH NAME
3PGASetCharacterAllele \- sets the value of an allele in a
4PGA_DATATYPE_CHARACTER string.
5.SH INPUT PARAMETERS
6.PD 0
7.TP
8ctx
9- context variable
10.PD 0
11.TP
12p
13- string index
14.PD 0
15.TP
16pop
17- symbolic constant of the population the string is in
18.PD 0
19.TP
20i
21- allele index
22.PD 0
23.TP
24val
25- character value to set the allele to
26.PD 1
27.SH OUTPUT PARAMETERS
28.PD 0
29.TP
30side
31-effect.
32.PD 1
33.SH SYNOPSIS
34.nf
35#include "pgapack.h"
36void  PGASetCharacterAllele(ctx, p, pop, i, value)
37PGAContext *ctx
38int p
39int pop
40int i
41char value
42.fi
43.SH LOCATION
44char.c
45.SH EXAMPLE
46.nf
47Copies the alleles from member p in PGA_OLDPOP to member q in PGA_NEWPOP.
48Assumes the strings are of the same length.
49
50PGAContext *ctx;
51int p, q, i;
52:
53for (i=PGAGetStringLength(ctx)-1; i>=0; i--)
54PGASetCharacterAllele(ctx, q, PGA_NEWPOP, i,
55PGAGetCharacterAllele(ctx, p, PGA_OLDPOP, i))
56
57.fi
Note: See TracBrowser for help on using the repository browser.