Last change
on this file since 816 was
816,
checked in by liveletlive, 16 years ago
|
Committing the newer version of PGAPack.
|
File size:
637 bytes
|
Line | |
---|
1 | .TH PGAGetRandomInitFlag 2 "05/01/95" " " "PGAPack" |
---|
2 | .SH NAME |
---|
3 | PGAGetRandomInitFlag \- returns true/false to indicate whether or not |
---|
4 | alleles are randomly initialized. |
---|
5 | .SH INPUT PARAMETERS |
---|
6 | .PD 0 |
---|
7 | .TP |
---|
8 | ctx |
---|
9 | - context variable |
---|
10 | .PD 1 |
---|
11 | .SH OUTPUT PARAMETERS |
---|
12 | .PD 0 |
---|
13 | .TP |
---|
14 | none |
---|
15 | |
---|
16 | .PD 1 |
---|
17 | .SH SYNOPSIS |
---|
18 | .nf |
---|
19 | #include "pgapack.h" |
---|
20 | int PGAGetRandomInitFlag(ctx) |
---|
21 | PGAContext *ctx |
---|
22 | .fi |
---|
23 | .SH LOCATION |
---|
24 | create.c |
---|
25 | .SH EXAMPLE |
---|
26 | .nf |
---|
27 | Example: |
---|
28 | PGAContext *ctx; |
---|
29 | int raninit; |
---|
30 | : |
---|
31 | raninit = PGAGetRandomInitFlag(ctx); |
---|
32 | switch (raninit) { |
---|
33 | case PGA_TRUE: |
---|
34 | printf("Population is randomly initialized\n"); |
---|
35 | break; |
---|
36 | case PGA_FALSE: |
---|
37 | printf("Population initialized to zero\n"); |
---|
38 | break; |
---|
39 | } |
---|
40 | |
---|
41 | .fi |
---|
Note: See
TracBrowser
for help on using the repository browser.