Query: pgasetrealinitrange
OS: debian
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGASetRealInitRange(2) PGAPack PGASetRealInitRange(2)NAMEPGASetRealInitRange - sets the upper and lower bounds for randomly initializing real-valued genes.DESCRIPTIONFor each gene these bounds define an interval from which the initial allele value is selected uniformly randomly. The user specifies two arrays containing lower and bound for each gene to define the interval. This is the default strategy for initializing real-valued strings. The default interval is $[0,1.0]$ for each gene.INPUT PARAMETERSctx - context variable min - array containing the lower bound of the interval for each gene mac - array containing the upper bound of the interval for each geneOUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" void PGASetRealInitRange(ctx, min, max) PGAContext *ctx double *min double *maxLOCATIONreal.cEXAMPLESet the initialization routines to select a value for each real-valued gene i uniformly randomly from the interval [-10.,i] Assumes all strings are of the same length. PGAContext *ctx; double *low, *high; int i, stringlen; : stringlen = PGAGetStringLength(ctx); low = (double *) malloc(stringlen*sizeof(double)); high = (double *) malloc(stringlen*sizeof(double)); for(i=0;i<stringlen;i++) { low[i] = -10.0; high[i] = i; } PGASetRealInitRange(ctx, low, high); 05/01/95 PGASetRealInitRange(2)
Related Man Pages |
---|
pgasetintegerinitrange(2) - debian |
pgasetrealinitpercent(2) - debian |
pgasendreceiveindividual(4) - debian |
drand48_r(3c) - hpux |
ace::sequence::gene(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Request to check: compare two files , match same entries, write data before it |
Limiting the Script |
Replace only few string |
Insert id from same block |
How to delete strings in a file? |