Query: pgarank
OS: debian
Section: 1
Links: debian man pages | All man pages
Forums: Unix Linux Community | Forum Categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGARank(1) PGAPack PGARank(1)NAMEPGARank - returns the rank of a string in a population.DESCRIPTIONThis is a value between 1,...,N (the population size). The most fit string has rank 1, the least fit string has rank N.INPUT PARAMETERSctx - context variable p - the index of the string whose rank is desired order - an array containing a unique rank for each string n - the size of the array orderOUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" int PGARank(ctx, p, order, n) PGAContext *ctx int p int *order int nLOCATIONfitness.cEXAMPLEExample: Determine the rank of string p. PGAContext *ctx; int i, popsize, rank, *order; double *fitness; popsize = PGAGetPopsize(ctx); order = (int *) malloc(sizeof(int) * popsize); fitness = (double *)malloc(sizeof(double) * popsize); for(i=0;i<popsize; i++) { fitness[i] = PGAGetFitness(ctx, p, PGA_OLDPOP); order[i] = i; } PGADblHeapSort(ctx, fitness, order, popsize); rank = PGARank(ctx, p, order, popsize) 05/01/95 PGARank(1)
Related Man Pages |
---|
pgaevaluate(1) - debian |
pgasetintegerinitrange(2) - debian |
pgasetrealinitpercent(2) - debian |
pgasetrealinitrange(2) - debian |
mlib_imagerankfilter5x5(3mlib) - sunos |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
awk or sed - Convert 2 lines to 1 line |
Is UNIX an open source OS ? |
Detecting unused variables... |
New UNIX and Linux History Sections |