You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by da...@apache.org on 2017/05/28 18:31:51 UTC
svn commit: r1796518 [7/19] - in /spamassassin/trunk/build/pga: ./ docs/
examples/ examples/c/ examples/fortran/ examples/mgh/ examples/templates/
include/ lib/ lib/linux/ man/ man/man1/ man/man2/ man/man3/ man/man4/
man/man5/ man/man6/ man/man7/ man/m...
Added: spamassassin/trunk/build/pga/include/pgapackf.h
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/include/pgapackf.h?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/include/pgapackf.h (added)
+++ spamassassin/trunk/build/pga/include/pgapackf.h Sun May 28 18:31:49 2017
@@ -0,0 +1,359 @@
+c******************************************************************************
+c FILE: pgapackf.h
+c
+c Authors: David M. Levine, Philip L. Hallstrom, David M. Noelle,
+c Brian P. Walenz
+c*****************************************************************************/
+c *** I/O FLAGS
+CBARF !! is NULL ok?
+ integer STDIN, STDOUT, STDERR, NULL
+ parameter(STDIN=5, STDOUT=6, STDERR=6, NULL=0)
+
+
+c *** ABSTRACT DATA TYPES
+ integer PGA_DATATYPE_BINARY
+ parameter( PGA_DATATYPE_BINARY = 1)
+ integer PGA_DATATYPE_INTEGER
+ parameter( PGA_DATATYPE_INTEGER = 2)
+ integer PGA_DATATYPE_REAL
+ parameter( PGA_DATATYPE_REAL = 3)
+ integer PGA_DATATYPE_CHARACTER
+ parameter( PGA_DATATYPE_CHARACTER = 4)
+ integer PGA_DATATYPE_USER
+ parameter( PGA_DATATYPE_USER = 5)
+
+ integer PGA_INT
+ parameter( PGA_INT = 1)
+ integer PGA_DOUBLE
+ parameter( PGA_DOUBLE = 2)
+ integer PGA_CHAR
+ parameter( PGA_CHAR = 3)
+ integer PGA_VOID
+ parameter( PGA_VOID = 4)
+
+
+c *** BOOLEANS & FLAGS
+ integer PGA_TRUE
+ parameter ( PGA_TRUE = 1)
+ integer PGA_FALSE
+ parameter ( PGA_FALSE = 0)
+
+ integer PGA_FATAL
+ parameter ( PGA_FATAL = 1)
+ integer PGA_WARNING
+ parameter ( PGA_WARNING = 2)
+
+
+ integer PGA_UNINITIALIZED_INT
+ parameter ( PGA_UNINITIALIZED_INT = -3827)
+ double precision PGA_UNINITIALIZED_DOUBLE
+ parameter ( PGA_UNINITIALIZED_DOUBLE = -968.3827)
+
+c *** TEMP & POP REFERENT CONSTANTS
+ integer PGA_TEMP1
+ parameter ( PGA_TEMP1 = -1138)
+ integer PGA_TEMP2
+ parameter ( PGA_TEMP2 = -4239)
+
+ integer PGA_OLDPOP
+ parameter ( PGA_OLDPOP = -6728)
+ integer PGA_NEWPOP
+ parameter ( PGA_NEWPOP = -8376)
+
+c *** DEBUG LEVELS
+ integer PGA_DEBUG_ENTERED
+ parameter ( PGA_DEBUG_ENTERED = 12)
+ integer PGA_DEBUG_EXIT
+ parameter ( PGA_DEBUG_EXIT = 13)
+ integer PGA_DEBUG_MALLOC
+ parameter ( PGA_DEBUG_MALLOC = 80)
+ integer PGA_DEBUG_PRINTVAR
+ parameter ( PGA_DEBUG_PRINTVAR = 82)
+ integer PGA_DEBUG_SEND
+ parameter ( PGA_DEBUG_SEND = 22)
+ integer PGA_DEBUG_RECV
+ parameter ( PGA_DEBUG_RECV = 23)
+ integer PGA_DEBUG_MAXPGAPACKFUNCTIONS
+ parameter ( PGA_DEBUG_MAXPGAPACKFUNCTIONS = 300)
+ integer PGA_DEBUG_MAXFLAGS
+ parameter ( PGA_DEBUG_MAXFLAGS = 1000)
+
+c *** DIRECTION
+ integer PGA_MAXIMIZE
+ parameter ( PGA_MAXIMIZE = 1)
+ integer PGA_MINIMIZE
+ parameter ( PGA_MINIMIZE = 2)
+
+c *** STOPPING CRITERIA
+ integer PGA_STOP_MAXITER
+ parameter ( PGA_STOP_MAXITER = 1)
+ integer PGA_STOP_NOCHANGE
+ parameter ( PGA_STOP_NOCHANGE = 2)
+ integer PGA_STOP_TOOSIMILAR
+ parameter ( PGA_STOP_TOOSIMILAR = 4)
+
+c *** CROSSOVER
+ integer PGA_CROSSOVER_ONEPT
+ parameter ( PGA_CROSSOVER_ONEPT = 1)
+ integer PGA_CROSSOVER_TWOPT
+ parameter ( PGA_CROSSOVER_TWOPT = 2)
+ integer PGA_CROSSOVER_UNIFORM
+ parameter ( PGA_CROSSOVER_UNIFORM = 3)
+
+c *** SELECTION
+ integer PGA_SELECT_PROPORTIONAL
+ parameter ( PGA_SELECT_PROPORTIONAL = 1)
+ integer PGA_SELECT_SUS
+ parameter ( PGA_SELECT_SUS = 2)
+ integer PGA_SELECT_TOURNAMENT
+ parameter ( PGA_SELECT_TOURNAMENT = 3)
+ integer PGA_SELECT_PTOURNAMENT
+ parameter ( PGA_SELECT_PTOURNAMENT = 4)
+
+c *** FITNESS
+ integer PGA_FITNESS_RAW
+ parameter ( PGA_FITNESS_RAW = 1)
+ integer PGA_FITNESS_NORMAL
+ parameter ( PGA_FITNESS_NORMAL = 2)
+ integer PGA_FITNESS_RANKING
+ parameter ( PGA_FITNESS_RANKING = 3)
+
+c *** FITNESS (MINIMIZATION)
+ integer PGA_FITNESSMIN_RECIPROCAL
+ parameter ( PGA_FITNESSMIN_RECIPROCAL = 1)
+ integer PGA_FITNESSMIN_CMAX
+ parameter ( PGA_FITNESSMIN_CMAX = 2)
+
+c *** MUTATION
+ integer PGA_MUTATION_CONSTANT
+ parameter ( PGA_MUTATION_CONSTANT = 1)
+ integer PGA_MUTATION_RANGE
+ parameter ( PGA_MUTATION_RANGE = 2)
+ integer PGA_MUTATION_UNIFORM
+ parameter ( PGA_MUTATION_UNIFORM = 3)
+ integer PGA_MUTATION_GAUSSIAN
+ parameter ( PGA_MUTATION_GAUSSIAN = 4)
+ integer PGA_MUTATION_PERMUTE
+ parameter ( PGA_MUTATION_PERMUTE = 5)
+
+c *** POPULATION REPLACEMENT
+ integer PGA_POPREPL_BEST
+ parameter ( PGA_POPREPL_BEST = 1)
+ integer PGA_POPREPL_RANDOM_NOREP
+ parameter ( PGA_POPREPL_RANDOM_NOREP = 2)
+ integer PGA_POPREPL_RANDOM_REP
+ parameter ( PGA_POPREPL_RANDOM_REP = 3)
+
+c *** REPORT OPTIONS
+ integer PGA_REPORT_ONLINE
+ parameter ( PGA_REPORT_ONLINE = 1 )
+ integer PGA_REPORT_OFFLINE
+ parameter ( PGA_REPORT_OFFLINE = 2 )
+ integer PGA_REPORT_HAMMING
+ parameter ( PGA_REPORT_HAMMING = 4 )
+ integer PGA_REPORT_STRING
+ parameter ( PGA_REPORT_STRING = 8 )
+ integer PGA_REPORT_WORST
+ parameter ( PGA_REPORT_WORST = 16 )
+ integer PGA_REPORT_AVERAGE
+ parameter ( PGA_REPORT_AVERAGE = 32 )
+
+c *** RANDOMIZER
+ integer PGA_IINIT_PERMUTE
+ parameter ( PGA_IINIT_PERMUTE = 1)
+ integer PGA_IINIT_RANGE
+ parameter ( PGA_IINIT_RANGE = 2)
+ integer PGA_CINIT_LOWER
+ parameter ( PGA_CINIT_LOWER = 1)
+ integer PGA_CINIT_UPPER
+ parameter ( PGA_CINIT_UPPER = 2)
+ integer PGA_CINIT_MIXED
+ parameter ( PGA_CINIT_MIXED = 3)
+
+c *** SET USER FUNCTION
+ integer PGA_USERFUNCTION_CREATESTRING
+ parameter ( PGA_USERFUNCTION_CREATESTRING = 1)
+ integer PGA_USERFUNCTION_MUTATION
+ parameter ( PGA_USERFUNCTION_MUTATION = 2)
+ integer PGA_USERFUNCTION_CROSSOVER
+ parameter ( PGA_USERFUNCTION_CROSSOVER = 3)
+ integer PGA_USERFUNCTION_PRINTSTRING
+ parameter ( PGA_USERFUNCTION_PRINTSTRING = 4)
+ integer PGA_USERFUNCTION_COPYSTRING
+ parameter ( PGA_USERFUNCTION_COPYSTRING = 5)
+ integer PGA_USERFUNCTION_DUPLICATE
+ parameter ( PGA_USERFUNCTION_DUPLICATE = 6)
+ integer PGA_USERFUNCTION_INITSTRING
+ parameter ( PGA_USERFUNCTION_INITSTRING = 7)
+ integer PGA_USERFUNCTION_BUILDDATATYPE
+ parameter ( PGA_USERFUNCTION_BUILDDATATYPE = 8)
+ integer PGA_USERFUNCTION_STOPCOND
+ parameter ( PGA_USERFUNCTION_STOPCOND = 9)
+ integer PGA_USERFUNCTION_ENDOFGEN
+ parameter ( PGA_USERFUNCTION_ENDOFGEN = 10)
+
+c *** TAGS
+ integer PGA_COMM_STRINGTOEVAL
+ parameter ( PGA_COMM_STRINGTOEVAL = 1)
+ integer PGA_COMM_EVALOFSTRING
+ parameter ( PGA_COMM_EVALOFSTRING = 2)
+ integer PGA_COMM_DONEWITHEVALS
+ parameter ( PGA_COMM_DONEWITHEVALS = 3)
+ integer PGAGetBinaryAllele
+ double precision PGAGetBinaryInitProb
+ character PGAGetCharacterAllele
+ integer PGACreate
+ integer PGAGetRandomInitFlag
+ integer PGAGetCrossoverType
+ double precision PGAGetCrossoverProb
+ double precision PGAGetUniformCrossoverProb
+ integer PGADuplicate
+ integer PGAGetNoDuplicatesFlag
+ double precision PGAGetEvaluation
+ integer PGAGetEvaluationUpToDateFlag
+ double precision PGAGetRealFromBinary
+ double precision PGAGetRealFromGrayCode
+ integer PGAGetIntegerFromBinary
+ integer PGAGetIntegerFromGrayCode
+ integer PGARank
+ double precision PGAGetFitness
+ integer PGAGetFitnessType
+ integer PGAGetFitnessMinType
+ double precision PGAGetMaxFitnessRank
+ double precision PGAGetFitnessCmaxValue
+ double precision PGAHammingDistance
+ integer PGAGetIntegerAllele
+ integer PGAGetIntegerInitType
+ integer PGAGetMinIntegerInitValue
+ integer PGAGetMaxIntegerInitValue
+ integer PGAMutate
+ integer PGAGetMutationType
+ double precision PGAGetMutationRealValue
+ integer PGAGetMutationIntegerValue
+ integer PGAGetMutationBoundedFlag
+ double precision PGAGetMutationProb
+ integer PGABuildDatatype
+ integer PGAGetRank
+ integer PGAGetNumProcs
+ integer PGAGetCommunicator
+ integer PGAGetDataType
+ integer PGAGetOptDirFlag
+ integer PGAGetStringLength
+ integer PGAGetGAIterValue
+ integer PGAGetMutationOrCrossoverFlag
+ integer PGAGetMutationAndCrossoverFlag
+ integer PGAGetPopSize
+ integer PGAGetNumReplaceValue
+ integer PGAGetPopReplaceType
+ integer PGAGetSortedPopIndex
+ integer PGARandomFlip
+ integer PGARandomInterval
+ double precision PGARandom01
+ double precision PGARandomUniform
+ double precision PGARandomGaussian
+ integer PGAGetRandomSeed
+ double precision PGAGetRealAllele
+ double precision PGAGetMinRealInitValue
+ double precision PGAGetMaxRealInitValue
+ integer PGAGetRealInitType
+ integer PGAGetPrintFrequencyValue
+ integer PGAGetRestartFlag
+ integer PGAGetRestartFrequencyValue
+ double precision PGAGetRestartAlleleChangeProb
+ integer PGASelectNextIndex
+ integer PGAGetSelectType
+ double precision PGAGetPTournamentProb
+ integer PGADone
+ integer PGACheckStoppingConditions
+ integer PGAGetStoppingRuleType
+ integer PGAGetMaxGAIterValue
+ integer PGAGetMaxMachineIntValue
+ integer PGAGetMinMachineIntValue
+ double precision PGAGetMaxMachineDoubleValue
+ double precision PGAGetMinMachineDoubleValue
+ double precision PGAMean
+ double precision PGAStddev
+ integer PGARound
+ integer PGACheckSum
+ integer PGAGetWorstIndex
+ integer PGAGetBestIndex
+
+ external PGAGetBinaryAllele
+ external PGAGetBinaryInitProb
+ external PGAGetCharacterAllele
+ external PGACreate
+ external PGAGetRandomInitFlag
+ external PGAGetCrossoverType
+ external PGAGetCrossoverProb
+ external PGAGetUniformCrossoverProb
+ external PGADuplicate
+ external PGAGetNoDuplicatesFlag
+ external PGAGetEvaluation
+ external PGAGetEvaluationUpToDateFlag
+ external PGAGetRealFromBinary
+ external PGAGetRealFromGrayCode
+ external PGAGetIntegerFromBinary
+ external PGAGetIntegerFromGrayCode
+ external PGARank
+ external PGAGetFitness
+ external PGAGetFitnessType
+ external PGAGetFitnessMinType
+ external PGAGetMaxFitnessRank
+ external PGAGetFitnessCmaxValue
+ external PGAHammingDistance
+ external PGAGetIntegerAllele
+ external PGAGetIntegerInitType
+ external PGAGetMinIntegerInitValue
+ external PGAGetMaxIntegerInitValue
+ external PGAMutate
+ external PGAGetMutationType
+ external PGAGetMutationRealValue
+ external PGAGetMutationIntegerValue
+ external PGAGetMutationBoundedFlag
+ external PGAGetMutationProb
+ external PGABuildDatatype
+ external PGAGetRank
+ external PGAGetNumProcs
+ external PGAGetCommunicator
+ external PGAGetDataType
+ external PGAGetOptDirFlag
+ external PGAGetStringLength
+ external PGAGetGAIterValue
+ external PGAGetMutationOrCrossoverFlag
+ external PGAGetMutationAndCrossoverFlag
+ external PGAGetPopSize
+ external PGAGetNumReplaceValue
+ external PGAGetPopReplaceType
+ external PGAGetSortedPopIndex
+ external PGARandomFlip
+ external PGARandomInterval
+ external PGARandom01
+ external PGARandomUniform
+ external PGARandomGaussian
+ external PGAGetRandomSeed
+ external PGAGetRealAllele
+ external PGAGetMinRealInitValue
+ external PGAGetMaxRealInitValue
+ external PGAGetRealInitType
+ external PGAGetPrintFrequencyValue
+ external PGAGetRestartFlag
+ external PGAGetRestartFrequencyValue
+ external PGAGetRestartAlleleChangeProb
+ external PGASelectNextIndex
+ external PGAGetSelectType
+ external PGAGetPTournamentProb
+ external PGADone
+ external PGACheckStoppingConditions
+ external PGAGetStoppingRuleType
+ external PGAGetMaxGAIterValue
+ external PGAGetMaxMachineIntValue
+ external PGAGetMinMachineIntValue
+ external PGAGetMaxMachineDoubleValue
+ external PGAGetMinMachineDoubleValue
+ external PGAMean
+ external PGAStddev
+ external PGARound
+ external PGACheckSum
+ external PGAGetWorstIndex
+ external PGAGetBestIndex
+
Added: spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsBinary.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsBinary.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsBinary.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsBinary.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,59 @@
+.TH PGAEncodeIntegerAsBinary 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAEncodeIntegerAsBinary \- encodes an integer value as a binary string
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+start
+- starting bit position in p to encode val in
+.PD 0
+.TP
+end
+- ending bit position in p to encode val in
+.PD 0
+.TP
+val
+- the integer value to be represented as a binary string
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+side
+-effect.
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGAEncodeIntegerAsBinary(ctx, p, pop, start, end, val)
+PGAContext *ctx
+int p
+int pop
+int start
+int end
+int val
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Encode an integer v in 20 bits in bit positions 0--19 in string p
+in population PGA_NEWPOP.
+
+PGAContext *ctx;
+int v, p;
+:
+PGAEncodeIntegerAsBinary(ctx, p, PGA_NEWPOP, 0, 19, v);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsGrayCode.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsGrayCode.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsGrayCode.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsGrayCode.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,61 @@
+.TH PGAEncodeIntegerAsGrayCode 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAEncodeIntegerAsGrayCode \- encodes a real value as a binary reflected
+Gray code sequence
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+start
+- starting bit position in p to encode val in
+.PD 0
+.TP
+end
+- ending bit position in p to encode val in
+.PD 0
+.TP
+val
+- the integer value to be represented as a binary reflected
+Gray code sequence
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+side
+-effect.
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGAEncodeIntegerAsGrayCode(ctx, p, pop, start, end, val)
+PGAContext *ctx
+int p
+int pop
+int start
+int end
+int val
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Encode an integer v in 20 bits in bit positions 0--19 in string p in
+population PGA_NEWPOP using Gray code.
+
+PGAContext *ctx;
+int v, p;
+:
+PGAEncodeIntegerAsGrayCode(ctx, p, PGA_NEWPOP, 0, 19, 7);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsBinary.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsBinary.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsBinary.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsBinary.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,69 @@
+.TH PGAEncodeRealAsBinary 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAEncodeRealAsBinary \- encodes a real value as a binary string
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+start
+- starting bit position in p to encode val in
+.PD 0
+.TP
+end
+- ending bit position in p to encode val in
+.PD 0
+.TP
+low
+- lower bound of the interval the val is defined on
+.PD 0
+.TP
+high
+- lower bound of the interval the val is defined on
+.PD 0
+.TP
+val
+- the real number to be represented as a binary string
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+side
+-effect.
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGAEncodeRealAsBinary(ctx, p, pop, start, end, low, high, val)
+PGAContext *ctx
+int p
+int pop
+int start
+int end
+double low
+double high
+double val
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Encode 3.14 from the interval [0,10] in 30 bits in bit positions
+0--29 in string p in population PGA_NEWPOP.
+
+PGAContext *ctx;
+int p;
+:
+PGAEncodeRealAsBinary(ctx, p, PGA_NEWPOP, 0, 29, 0.0, 10.0, 3.14);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsGrayCode.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsGrayCode.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsGrayCode.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsGrayCode.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,71 @@
+.TH PGAEncodeRealAsGrayCode 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAEncodeRealAsGrayCode \- encodes a real value as a binary reflected Gray
+code sequence
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+start
+- starting bit position in p to encode val in
+.PD 0
+.TP
+end
+- ending bit position in p to encode val in
+.PD 0
+.TP
+low
+- lower bound of the interval the val is defined on
+.PD 0
+.TP
+high
+- lower bound of the interval the val is defined on
+.PD 0
+.TP
+val
+- the real number to be represented as a binary string
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+side
+-effect.
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGAEncodeRealAsGrayCode(ctx, p, pop, start, end, low, high, val)
+PGAContext *ctx
+int p
+int pop
+int start
+int end
+double low
+double high
+double val
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Encode 3.14 from the interval [0,10] in 30 bits in bit positions
+0--29 in string p in population PGA_NEWPOP as a binary reflected Gray
+code sequence.
+
+PGAContext *ctx;
+int p;
+:
+PGAEncodeRealAsGrayCode(ctx, p, PGA_NEWPOP, 0, 29, 0.0, 10.0, 3.14);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAEvaluate.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAEvaluate.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAEvaluate.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAEvaluate.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,63 @@
+.TH PGAEvaluate 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAEvaluate \- Calls a user-specified function to return an evaluation of
+each string in the population.
+.SH DESCRIPTION
+The user-specified function is only called
+if the string has been changed (e.g., by crossover or mutation) or the user
+has explicitly signaled the string's evaluation is out-of-date by a call
+to PGASetEvaluationUpToDateFlag().
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+pop
+- symbolic constant of the population to be evaluated
+.PD 0
+.TP
+f
+- a pointer to a function to evaluate a string. This function will
+be called once for each string in population pop that requires
+evaluation. This function must return a double (the evaluation
+function value) and must fit the prototype
+double f(PGAContext *c, int p, int pop);
+.PD 0
+.TP
+comm
+- an MPI communicator
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGAEvaluate(ctx, pop, , comm)
+PGAContext *ctx
+int pop
+double (*f)(PGAContext *, int, int)
+MPI_Comm comm
+.fi
+.SH LOCATION
+parallel.c
+.SH EXAMPLE
+.nf
+Example:
+Evaluate all strings in population PGA_NEWPOP using the user-defined
+evaluation function Energy.
+
+double Energy(PGAContext *ctx, int p, int pop) {
+:
+};
+
+PGAContext *ctx;
+:
+PGAEvaluate(ctx, PGA_NEWPOP, Energy, MPI_COMM_WORLD);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAFitness.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAFitness.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAFitness.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAFitness.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,48 @@
+.TH PGAFitness 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAFitness \- Maps the user's evaluation function value to a fitness value.
+.SH DESCRIPTION
+First, the user's evaluation function value is translated to all positive
+values if any are negative. Next, this positive sequence is translated to
+a maximization problem if the user's optimization direction was minimization.
+This positive sequence is then mapped to a fitness value using linear
+ranking, linear normalization fitness, or the identity (i.e., the evaluation
+function value). This routine is usually used after PGAEvaluate is called.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+pop
+- symbolic constant of the population to calculate fitness for
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGAFitness(ctx, popindex)
+PGAContext *ctx
+int popindex
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+Example:
+Calculate the fitness of all strings in population PGA_NEWPOP after
+calling PGAEvaluate to calculate the strings evaluation value.
+
+double energy(PGAContext *ctx, int p, int pop);
+PGAContext *ctx;
+:
+PGAEvaluate(ctx, PGA_NEWPOP, energy);
+PGAFitness (ctx, PGA_NEWPOP);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetBinaryAllele.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetBinaryAllele.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetBinaryAllele.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetBinaryAllele.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,53 @@
+.TH PGAGetBinaryAllele 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetBinaryAllele \- returns the value of a (binary) allele in a
+PGA_DATATYPE_BINARY string
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+i
+- allele index
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetBinaryAllele(ctx, p, pop, i)
+PGAContext *ctx
+int p
+int pop
+int i
+.fi
+.SH LOCATION
+binary.c
+.SH EXAMPLE
+.nf
+Example:
+Copies the alleles from member p in PGA_OLDPOP to member q PGA_NEWPOP.
+Assumes the strings are of the same length.
+
+PGAContext *ctx;
+int p, q, i;
+:
+for (i=PGAGetStringLength(ctx)-1; i>=0; i--)
+PGASetBinaryAllele(ctx, q, PGA_NEWPOP, i,
+PGAGetBinaryAllele(ctx, p, PGA_OLDPOP, i))
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetCharacterAllele.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetCharacterAllele.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetCharacterAllele.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetCharacterAllele.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,52 @@
+.TH PGAGetCharacterAllele 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetCharacterAllele \- Returns the value of character allele in a PGA_DATATYPE_CHARACTER string
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+i
+- allele index
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+char PGAGetCharacterAllele(ctx, p, pop, i)
+PGAContext *ctx
+int p
+int pop
+int i
+.fi
+.SH LOCATION
+char.c
+.SH EXAMPLE
+.nf
+Example:
+Copies the alleles from member p in PGA_OLDPOP to member q in PGA_NEWPOP.
+Assumes the strings are of the same length.
+
+PGAContext *ctx;
+int p, q, i;
+:
+for (i=PGAGetStringLength(ctx, p, PGA_NEWPOP)-1; i>=0; i--)
+PGASetCharacterAllele(ctx, q, PGA_NEWPOP, i,
+PGAGetCharacterAllele(ctx, p, PGA_OLDPOP, i))
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetEvaluation.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetEvaluation.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetEvaluation.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetEvaluation.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,44 @@
+.TH PGAGetEvaluation 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetEvaluation \- returns the evaluation function value for
+string p in population pop
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetEvaluation(ctx, p, pop)
+PGAContext *ctx
+int p
+int pop
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int p;
+double eval;
+:
+eval = PGAGetEvaluation(ctx, p, PGA_NEWPOP);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetEvaluationUpToDateFlag.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetEvaluationUpToDateFlag.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetEvaluationUpToDateFlag.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetEvaluationUpToDateFlag.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,51 @@
+.TH PGAGetEvaluationUpToDateFlag 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetEvaluationUpToDateFlag \- returns true/false to indicate
+whether the evaluate function value is up to date
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetEvaluationUpToDateFlag(ctx, p, pop)
+PGAContext *ctx
+int p
+int pop
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int uptodate;
+:
+uptodate = PGAGetEvaluationUpToDateFlag(ctx);
+switch (uptodate) {
+case PGA_TRUE:
+printf("Evaluation function value current\n");
+break;
+case PGA_FALSE:
+printf("Evaluation function value out-of-date\n");
+break;
+}
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetFitness.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetFitness.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetFitness.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetFitness.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,43 @@
+.TH PGAGetFitness 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetFitness \- returns the fitness value for a string
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetFitness(ctx, p, pop)
+PGAContext *ctx
+int p
+int pop
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int p;
+double fit;
+:
+fit = PGAGetFitness(ctx, p, PGA_NEWPOP);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetFitnessCmaxValue.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetFitnessCmaxValue.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetFitnessCmaxValue.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetFitnessCmaxValue.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,33 @@
+.TH PGAGetFitnessCmaxValue 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetFitnessCmaxValue \- returns the value of the multiplier used by
+PGAFitnessMinCmax.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetFitnessCmaxValue(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+double cmax;
+:
+cmax = PGAGetFitnessCmaxValue(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetFitnessMinType.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetFitnessMinType.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetFitnessMinType.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetFitnessMinType.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,43 @@
+.TH PGAGetFitnessMinType 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetFitnessMinType \- Returns the type of fitness transformation used
+for minimization problems.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetFitnessMinType(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+for minimization problems
+
+Example:
+PGAContext *ctx;
+int fitmintype;
+:
+fitmintype = PGAGetFitnessMinType(ctx);
+switch (fitmintype) {
+case PGA_FITNESSMIN_RECIPROCAL:
+printf("Fitness Minimization Type = PGA_FITNESSMIN_RECIPROCAL\n");
+break;
+case PGA_FITNESSMIN_CMAX:
+printf("Fitness Minimization Type = PGA_FITNESSMIN_CMAX\n");
+break;
+}
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetFitnessType.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetFitnessType.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetFitnessType.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetFitnessType.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,43 @@
+.TH PGAGetFitnessType 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetFitnessType \- Returns the type of fitness transformation used.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetFitnessType(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int fittype;
+:
+fittype = PGAGetFitnessType(ctx);
+switch (fittype) {
+case PGA_FITNESS_RAW:
+printf("Fitness Type = PGA_FITNESS_RAW\n");
+break;
+case PGA_FITNESS_NORMAL:
+printf("Fitness Type = PGA_FITNESS_NORMAL\n");
+break;
+case PGA_FITNESS_RANKING:
+printf("Fitness Type = PGA_FITNESS_RANKING\n");
+break;
+}
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetIntegerAllele.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetIntegerAllele.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetIntegerAllele.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetIntegerAllele.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,52 @@
+.TH PGAGetIntegerAllele 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetIntegerAllele \- Returns the value of allele i of member p in
+population pop.
+.SH DESCRIPTION
+Assumes the data type is PGA_DATATYPE_INTEGER.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+i
+- allele index
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetIntegerAllele(ctx, p, pop, i)
+PGAContext *ctx
+int p
+int pop
+int i
+.fi
+.SH LOCATION
+integer.c
+.SH EXAMPLE
+.nf
+Returns the value of the ith integer allele of string p
+in population PGA_NEWPOP.
+
+PGAContext *ctx;
+int p, i, k;
+:
+k = PGAGetIntegerAllele ( ctx, p, PGA_NEWPOP, i )
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromBinary.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromBinary.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromBinary.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromBinary.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,55 @@
+.TH PGAGetIntegerFromBinary 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetIntegerFromBinary \- interpets a binary string as encoding an integer
+value and returns the integer value it represents.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+start
+- starting bit position in the binary representation
+.PD 0
+.TP
+end
+- ending bit position in the binary representation
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetIntegerFromBinary(ctx, p, pop, start, end)
+PGAContext *ctx
+int p
+int pop
+int start
+int end
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Example:
+Get an integer j from bits 10--29 of string p in population PGA_NEWPOP.
+
+PGAContext *ctx;
+int j, p;
+:
+j = PGAGetIntegerFromBinary(ctx, p, PGA_NEWPOP, 10, 29);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromGrayCode.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromGrayCode.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromGrayCode.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromGrayCode.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,56 @@
+.TH PGAGetIntegerFromGrayCode 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetIntegerFromGrayCode \- interpets a binary reflected Gray code sequence
+as encoding an integer value and returns the integer value it represents.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+start
+- starting bit position in the binary representation
+.PD 0
+.TP
+end
+- ending bit position in the binary representation
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetIntegerFromGrayCode(ctx, p, pop, start, end)
+PGAContext *ctx
+int p
+int pop
+int start
+int end
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Example:
+Get an integer j from bits 10--29 of string p in population PGA_NEWPOP.
+The string is encoded in Gray code.
+
+PGAContext *ctx;
+int j, p;
+:
+j = PGAGetIntegerFromGrayCode(ctx, p, PGA_NEWPOP, 10, 29);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetMaxFitnessRank.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetMaxFitnessRank.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetMaxFitnessRank.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetMaxFitnessRank.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,32 @@
+.TH PGAGetMaxFitnessRank 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMaxFitnessRank \- returns the maximum value used in rank-based
+fitness.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+rank
+-based fitness
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetMaxFitnessRank(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+PGAContext *ctx;
+double max;
+:
+max = PGAGetMaxFitnessRank(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetRealAllele.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetRealAllele.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetRealAllele.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetRealAllele.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,50 @@
+.TH PGAGetRealAllele 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetRealAllele \- returns the value of real-valued allele i in string p
+in population pop
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+i
+- allele index
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetRealAllele(ctx, p, pop, i)
+PGAContext *ctx
+int p
+int pop
+int i
+.fi
+.SH LOCATION
+real.c
+.SH EXAMPLE
+.nf
+Example:
+Returns the value of the ith real-valued allele of string p
+in population PGA_NEWPOP
+
+PGAContext *ctx;
+int p, i, r;
+r = PGAGetRealAllele (ctx, p, PGA_NEWPOP, i)
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetRealFromBinary.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetRealFromBinary.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetRealFromBinary.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetRealFromBinary.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,66 @@
+.TH PGAGetRealFromBinary 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetRealFromBinary \- Interpets a binary string as encoding a real value
+and returns the real value it represents.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+start
+- starting bit position in the binary representation
+.PD 0
+.TP
+end
+- ending bit position in the binary representation
+.PD 0
+.TP
+lower
+- lower bound of the interval the real number is defined on
+.PD 0
+.TP
+upper
+- lower bound of the interval the real number is defined on
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetRealFromBinary(ctx, p, pop, start, end, lower, upper)
+PGAContext *ctx
+int p
+int pop
+int start
+int end
+double lower
+double upper
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Example:
+Decode a real value from the string p in population PGA_NEWPOP. The
+value to decode lies on the interval [-10,20] and is represented
+using the 20 bits in bit positions 10--29.
+
+double x;
+:
+x = PGAGetRealFromBinary(ctx, p, PGA_NEWPOP, 10, 29, -10.0, 20.0);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGAGetRealFromGrayCode.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGAGetRealFromGrayCode.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGAGetRealFromGrayCode.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGAGetRealFromGrayCode.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,67 @@
+.TH PGAGetRealFromGrayCode 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetRealFromGrayCode \- interpets a binary reflected Gray code sequence in
+a binary string as encoding a real value and returns the real value it
+represents.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+start
+- starting bit position in the binary representation
+.PD 0
+.TP
+end
+- ending bit position in the binary representation
+.PD 0
+.TP
+lower
+- lower bound of the interval the real number is defined on
+.PD 0
+.TP
+upper
+- lower bound of the interval the real number is defined on
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetRealFromGrayCode(ctx, p, pop, start, end, lower, upper)
+PGAContext *ctx
+int p
+int pop
+int start
+int end
+double lower
+double upper
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Example:
+Decode a real value from the string p in population PGA_NEWPOP. The
+value to decode lies on the interval [-10,20] and is represented
+using the 20 bits in bit positions 10--29.
+
+double x;
+:
+x = PGAGetRealFromGrayCode(ctx, p, PGA_NEWPOP, 10, 29, -10.0, 20.0);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGARank.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGARank.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGARank.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGARank.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,64 @@
+.TH PGARank 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGARank \- returns the rank of a string in a population.
+.SH DESCRIPTION
+This is a value
+between 1,...,N (the population size). The most fit string has rank 1,
+the least fit string has rank N.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- the index of the string whose rank is desired
+.PD 0
+.TP
+order
+- an array containing a unique rank for each string
+.PD 0
+.TP
+n
+- the size of the array order
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGARank(ctx, p, order, n)
+PGAContext *ctx
+int p
+int *order
+int n
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+Example:
+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)
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetBinaryAllele.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetBinaryAllele.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetBinaryAllele.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetBinaryAllele.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,56 @@
+.TH PGASetBinaryAllele 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetBinaryAllele \- sets a binary allele to the specified value.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+i
+- allele index
+.PD 0
+.TP
+val
+- binary value (either 1 or 0) to set the allele to
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+side
+-effect.
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetBinaryAllele(ctx, p, pop, i, val)
+PGAContext *ctx
+int p
+int pop
+int i
+int val
+.fi
+.SH LOCATION
+binary.c
+.SH EXAMPLE
+.nf
+Copies the alleles from member p in PGA_OLDPOP to member q PGA_NEWPOP.
+Assumes strings are of the same length.
+
+PGAContext *ctx;
+int p, q, i;
+:
+for (i=PGAGetStringLength(ctx)-1; i>=0; i--)
+PGASetBinaryAllele(ctx, q, PGA_NEWPOP, i,
+PGAGetBinaryAllele(ctx, p, PGA_OLDPOP, i))
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetCharacterAllele.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetCharacterAllele.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetCharacterAllele.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetCharacterAllele.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,57 @@
+.TH PGASetCharacterAllele 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetCharacterAllele \- sets the value of an allele in a
+PGA_DATATYPE_CHARACTER string.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+i
+- allele index
+.PD 0
+.TP
+val
+- character value to set the allele to
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+side
+-effect.
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetCharacterAllele(ctx, p, pop, i, value)
+PGAContext *ctx
+int p
+int pop
+int i
+char value
+.fi
+.SH LOCATION
+char.c
+.SH EXAMPLE
+.nf
+Copies the alleles from member p in PGA_OLDPOP to member q in PGA_NEWPOP.
+Assumes the strings are of the same length.
+
+PGAContext *ctx;
+int p, q, i;
+:
+for (i=PGAGetStringLength(ctx)-1; i>=0; i--)
+PGASetCharacterAllele(ctx, q, PGA_NEWPOP, i,
+PGAGetCharacterAllele(ctx, p, PGA_OLDPOP, i))
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetEvaluation.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetEvaluation.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetEvaluation.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetEvaluation.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,53 @@
+.TH PGASetEvaluation 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetEvaluation \- Set the evaluation function value for a string to a
+specified value.
+.SH DESCRIPTION
+Also sets the evaulation up to date flag to PGA_TRUE.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population string p is in
+.PD 0
+.TP
+val
+- the (user) evaluation value to assign to string p
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetEvaluation(ctx, p, pop, val)
+PGAContext *ctx
+int p
+int pop
+double val
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Example:
+Set the evaluation function value of string p in population PGA_NEWPOP
+to 123.456.
+
+PGAContext *ctx;
+int p;
+:
+PGASetEvaluation(ctx, p, PGA_NEWPOP, 123.456);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetEvaluationUpToDateFlag.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetEvaluationUpToDateFlag.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetEvaluationUpToDateFlag.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetEvaluationUpToDateFlag.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,56 @@
+.TH PGASetEvaluationUpToDateFlag 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetEvaluationUpToDateFlag \- sets the flag associated with a
+string to PGA_TRUE or PGA_FLASE to indicate whether the evaluate
+function value is out-of-date or not.
+.SH DESCRIPTION
+Note that this flag is always
+set to PGA_TRUE when PGASetEvaluation is called.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population string p is in
+.PD 0
+.TP
+status
+- boolean for whether up-to-date
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetEvaluationUpToDateFlag(ctx, p, pop, status)
+PGAContext *ctx
+int p
+int pop
+int status
+.fi
+.SH LOCATION
+evaluate.c
+.SH EXAMPLE
+.nf
+Example:
+Set the evaluation function flag for string p in population PGA_NEWPOP
+to PGA_FALSE (as might happen after, for example, calling a hill-climbing
+routine that modified this string).
+
+PGAContext *ctx;
+int p;
+:
+PGASetEvaluationUpToDateFlag(ctx, p, PGA_NEWPOP, PGA_FALSE);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetFitnessCmaxValue.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetFitnessCmaxValue.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetFitnessCmaxValue.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetFitnessCmaxValue.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,39 @@
+.TH PGASetFitnessCmaxValue 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetFitnessCmaxValue \- The value of the multiplier used by
+PGAFitnessMinCmax so that the worst string has a nonzero fitness.
+.SH DESCRIPTION
+The default value is 1.01.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+val
+- the value of the multiplier
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetFitnessCmaxValue(ctx, val)
+PGAContext *ctx
+double val
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+:
+PGASetFitnessCmaxValue(ctx, 1.2);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetFitnessMinType.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetFitnessMinType.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetFitnessMinType.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetFitnessMinType.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,42 @@
+.TH PGASetFitnessMinType 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetFitnessMinType \- sets the type of algorithm used if a minimization
+problem is specified to determine how values are remapped for maximization.
+.SH DESCRIPTION
+Valid choices are PGA_FITNESSMIN_RECIPROCAL and PGA_FITNESSMIN_CMAX to do
+the mapping using the reciprocal of the evaluation function, or by
+subtracting the worst evaluation function value from each evaluation
+function value, respectively. The default is PGA_FITNESSMIN_CMAX
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+fitness_type
+- symbolic constant to specify fitness minimization type
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetFitnessMinType(ctx, fitness_type)
+PGAContext *ctx
+int fitness_type
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+:
+PGASetFitnessMinType(ctx, PGA_FITNESSMIN_CMAX);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetFitnessType.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetFitnessType.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetFitnessType.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetFitnessType.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,41 @@
+.TH PGASetFitnessType 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetFitnessType \- Set the type of fitness algorithm to use.
+.SH DESCRIPTION
+Valid choices
+are PGA_FITNESS_RAW, PGA_FITNESS_NORMAL, or PGA_FITNESS_RANKING for
+raw fitness (the evaluation function value), linear normalization, or
+linear ranking, respectively. The default is PGA_FITNESS_RAW.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+fitness_type
+- symbolic constant to specify fitness type
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetFitnessType(ctx, fitness_type)
+PGAContext *ctx
+int fitness_type
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+:
+PGASetFitnessType(ctx, PGA_FITNESS_RANKING);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetIntegerAllele.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetIntegerAllele.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetIntegerAllele.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetIntegerAllele.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,54 @@
+.TH PGASetIntegerAllele 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetIntegerAllele \- sets the value of a (integer) allele.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+i
+- allele index
+.PD 0
+.TP
+val
+- integer value to set the allele to
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetIntegerAllele(ctx, p, pop, i, value)
+PGAContext *ctx
+int p
+int pop
+int i
+int value
+.fi
+.SH LOCATION
+integer.c
+.SH EXAMPLE
+.nf
+Set the value of the ith allele of string p in population PGA_NEWPOP
+to 64.
+
+PGAContext *ctx;
+int p, i;
+:
+PGASetIntegerAllele (ctx, p, PGA_NEWPOP, i, 64)
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetMaxFitnessRank.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetMaxFitnessRank.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetMaxFitnessRank.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetMaxFitnessRank.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,42 @@
+.TH PGASetMaxFitnessRank 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetMaxFitnessRank \- The value of the parameter Max when using linear
+ranking for fitness determination.
+.SH DESCRIPTION
+The default value is 1.2. The value
+must be from the interval [1.0, 2.0]. The fitness type must have been set
+to PGA_FITNESS_RANKING with PGASetFitnessType for this function call
+to have any effect.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+max
+- the value of the parameter Max when using linear ranking
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetMaxFitnessRank(ctx, fitness_rank_max)
+PGAContext *ctx
+double fitness_rank_max
+.fi
+.SH LOCATION
+fitness.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+:
+PGASetMaxFitnessRank(ctx, 1.1);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man1/PGASetRealAllele.1
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man1/PGASetRealAllele.1?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man1/PGASetRealAllele.1 (added)
+++ spamassassin/trunk/build/pga/man/man1/PGASetRealAllele.1 Sun May 28 18:31:49 2017
@@ -0,0 +1,55 @@
+.TH PGASetRealAllele 1 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetRealAllele \- sets the value of real-valued allele i in string p
+in population pop
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- string index
+.PD 0
+.TP
+pop
+- symbolic constant of the population the string is in
+.PD 0
+.TP
+i
+- allele index
+.PD 0
+.TP
+val
+- real value to set the allele to
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+side
+-effect.
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetRealAllele(ctx, p, pop, i, value)
+PGAContext *ctx
+int p
+int pop
+int i
+double value
+.fi
+.SH LOCATION
+real.c
+.SH EXAMPLE
+.nf
+Sets the value of the ith allele of string p in population PGA_NEWPOP
+to 1.57
+
+PGAContext *ctx;
+int i, p;
+:
+PGASetRealAllele ( ctx, p, PGA_NEWPOP, i, 1.57)
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGAGetBinaryInitProb.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGAGetBinaryInitProb.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGAGetBinaryInitProb.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGAGetBinaryInitProb.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,33 @@
+.TH PGAGetBinaryInitProb 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetBinaryInitProb \- Returns the probability that an allele will be
+randomly initialized to "1" in a PGA_DATATYPE_BINARY string.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetBinaryInitProb(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+binary.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+double prob;
+:
+prob = PGAGetBinaryInitProb(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGAGetIntegerInitType.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGAGetIntegerInitType.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGAGetIntegerInitType.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGAGetIntegerInitType.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,41 @@
+.TH PGAGetIntegerInitType 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetIntegerInitType \- returns the type of scheme used to randomly
+initialize strings of data type PGA_DATATYPE_INTEGER.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetIntegerInitType(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+integer.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int inittype;
+:
+inittype = PGAGetIntegerInitType(ctx);
+switch (inittype) {
+case PGA_IINIT_PERMUTE:
+printf("Data Type = PGA_IINIT_PERMUTE\n");
+break;
+case PGA_IINIT_RANGE:
+printf("Data Type = PGA_IINIT_RANGE\n");
+break;
+}
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGAGetMaxIntegerInitValue.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGAGetMaxIntegerInitValue.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGAGetMaxIntegerInitValue.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGAGetMaxIntegerInitValue.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,34 @@
+.TH PGAGetMaxIntegerInitValue 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMaxIntegerInitValue \- returns the maximum of the range of integers
+used to randomly initialize integer strings.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetMaxIntegerInitValue(ctx, i)
+PGAContext *ctx
+int i
+.fi
+.SH LOCATION
+integer.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int max;
+:
+max = PGAGetMaxIntegerInitValue(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGAGetMaxRealInitValue.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGAGetMaxRealInitValue.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGAGetMaxRealInitValue.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGAGetMaxRealInitValue.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,38 @@
+.TH PGAGetMaxRealInitValue 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMaxRealInitValue \- returns the maximum value used to randomly
+initialize allele i in a real string
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+i
+- an allele position
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetMaxRealInitValue(ctx, i)
+PGAContext *ctx
+int i
+.fi
+.SH LOCATION
+real.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int max;
+:
+max = PGAGetMaxRealInitValue(ctx, 0);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGAGetMinIntegerInitValue.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGAGetMinIntegerInitValue.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGAGetMinIntegerInitValue.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGAGetMinIntegerInitValue.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,34 @@
+.TH PGAGetMinIntegerInitValue 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMinIntegerInitValue \- returns the minimum of the range of integers
+used to randomly initialize integer strings.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetMinIntegerInitValue(ctx, i)
+PGAContext *ctx
+int i
+.fi
+.SH LOCATION
+integer.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int min;
+:
+min = PGAGetMinIntegerInitValue(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGAGetMinRealInitValue.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGAGetMinRealInitValue.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGAGetMinRealInitValue.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGAGetMinRealInitValue.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,38 @@
+.TH PGAGetMinRealInitValue 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMinRealInitValue \- returns the minimum value used to randomly
+initialize allele i in a real string
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+i
+- an allele position
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetMinRealInitValue(ctx, i)
+PGAContext *ctx
+int i
+.fi
+.SH LOCATION
+real.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int min;
+:
+min = PGAGetMinRealInitValue(ctx, 0);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGAGetRandomInitFlag.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGAGetRandomInitFlag.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGAGetRandomInitFlag.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGAGetRandomInitFlag.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,41 @@
+.TH PGAGetRandomInitFlag 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetRandomInitFlag \- returns true/false to indicate whether or not
+alleles are randomly initialized.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetRandomInitFlag(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+create.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int raninit;
+:
+raninit = PGAGetRandomInitFlag(ctx);
+switch (raninit) {
+case PGA_TRUE:
+printf("Population is randomly initialized\n");
+break;
+case PGA_FALSE:
+printf("Population initialized to zero\n");
+break;
+}
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGAGetRealInitType.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGAGetRealInitType.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGAGetRealInitType.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGAGetRealInitType.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,41 @@
+.TH PGAGetRealInitType 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetRealInitType \- returns the type of scheme used to randomly
+initialize strings of data type PGA_DATATYPE_REAL.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetRealInitType(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+real.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int inittype;
+:
+inittype = PGAGetRealInitType(ctx);
+switch (inittype) {
+case PGA_RINIT_PERCENT:
+printf("Data Type = PGA_RINIT_PERCENT\n");
+break;
+case PGA_RINIT_RANGE:
+printf("Data Type = PGA_RINIT_RANGE\n");
+break;
+}
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGASetBinaryInitProb.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGASetBinaryInitProb.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGASetBinaryInitProb.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGASetBinaryInitProb.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,42 @@
+.TH PGASetBinaryInitProb 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetBinaryInitProb \- specify the probability of initializing an allele to
+"1" when creating a PGA_DATATYPE_BINARY string.
+.SH DESCRIPTION
+The default value is 0.5.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p
+- the binary initialization probability
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetBinaryInitProb(ctx, probability)
+PGAContext *ctx
+double probability
+.fi
+.SH LOCATION
+binary.c
+.SH EXAMPLE
+.nf
+Example:
+Set approximately 1 percent of all binary alleles to "1" when randomly
+initializing the population.
+
+PGAContext *ctx;
+:
+PGASetBinaryInitProb(ctx, 0.01);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGASetCharacterInitType.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGASetCharacterInitType.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGASetCharacterInitType.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGASetCharacterInitType.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,42 @@
+.TH PGASetCharacterInitType 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetCharacterInitType \- sets a flag to specify whether the character
+strings will be exclusively lowercase, exclusively uppercase, or a mixure
+of both cases.
+.SH DESCRIPTION
+Legal flags are PGA_CINIT_UPPER, PGA_CINIT_LOWER, and
+PGA_CINIT_MIXED. Default is PGA_CINIT_LOWER.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+value
+- symbolic constant specifying which case
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetCharacterInitType(ctx, value)
+PGAContext *ctx
+int value
+.fi
+.SH LOCATION
+char.c
+.SH EXAMPLE
+.nf
+Set program to generate exclusively uppercase letters
+
+PGAContext *ctx;
+:
+PGASetCharacterInitType(ctx, PGA_CINIT_UPPER);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitPermute.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitPermute.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitPermute.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitPermute.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,50 @@
+.TH PGASetIntegerInitPermute 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetIntegerInitPermute \- sets a flag to tell the initialization routines
+to set each integer-valued gene to a random permutation of the values given
+by an upper and lower bound.
+.SH DESCRIPTION
+The length of the interval must be the same
+as the string length. This is the default strategy for initializing
+integer-valued strings. The default interval is [0,L-1] where L is the
+string length. No string initialization is done by this call.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+min
+- the lower bound of numbers used in the permutation
+.PD 0
+.TP
+max
+- the upper bound of numbers used in the permutation
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetIntegerInitPermute(ctx, min, max)
+PGAContext *ctx
+int min
+int max
+.fi
+.SH LOCATION
+integer.c
+.SH EXAMPLE
+.nf
+Set the initialization routines to set each gene to a random and
+unique value from the interval $[500,599]$.
+
+PGAContext *ctx;
+:
+PGASetIntegerInitPermute(ctx, 500, 599)}
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitRange.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitRange.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitRange.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitRange.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,59 @@
+.TH PGASetIntegerInitRange 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetIntegerInitRange \- sets a flag to tell the initialization routines to
+set each integer-valued gene to a value chosen randomly from the interval
+given by an upper and lower bound.
+.SH DESCRIPTION
+No string initialization is done by
+this call.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+min
+- array of lower bounds that define the interval the gene is
+initialized from
+.PD 0
+.TP
+max
+- array of upper bounds that define the interval the gene is
+initialized from
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetIntegerInitRange(ctx, min, max)
+PGAContext *ctx
+int *min
+int *max
+.fi
+.SH LOCATION
+integer.c
+.SH EXAMPLE
+.nf
+Set the initialization routines to select a value for gene i
+uniformly randomly from the interval [0,i]. Assumes all strings
+are of the same length.
+
+PGAContext *ctx;
+int *low, *high, stringlen, i;
+:
+stringlen = PGAGetStringLength(ctx);
+low = (int *) malloc(stringlen*sizeof(int));
+high = (int *) malloc(stringlen*sizeof(int));
+for(i=0;i<stringlen;i++) {
+low[i] = 0;
+high[i] = i
+}
+PGASetIntegerInitRange(ctx, low, high);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGASetRandomInitFlag.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGASetRandomInitFlag.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGASetRandomInitFlag.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGASetRandomInitFlag.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,42 @@
+.TH PGASetRandomInitFlag 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetRandomInitFlag \- A boolean flag to indicate whether to randomly
+initialize alleles.
+.SH DESCRIPTION
+Legal values are PGA_TRUE and PGA_FALSE. Default
+is PGA_TRUE -- randomly initialize alleles.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+flag
+- either PGA_TRUE or PGA_FALSE
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetRandomInitFlag(ctx, RandomBoolean)
+PGAContext *ctx
+int RandomBoolean
+.fi
+.SH LOCATION
+create.c
+.SH EXAMPLE
+.nf
+Example:
+Set the initialization routine to initialize all alleles to zero
+
+PGAContext *ctx;
+:
+PGASetRandomInitFlag(ctx,PGA_FALSE);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGASetRealInitPercent.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGASetRealInitPercent.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGASetRealInitPercent.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGASetRealInitPercent.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,60 @@
+.TH PGASetRealInitPercent 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetRealInitPercent \- sets the upper and lower bounds for randomly
+initializing real-valued genes.
+.SH DESCRIPTION
+For each gene these bounds define an
+interval from which the initial allele value is selected uniformly randomly.
+With this routine the user specifies a median value and a percent offset
+for each allele.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+median
+- an array containing the mean value of the interval
+.PD 0
+.TP
+percent
+- an array containing the percent offset to add and subtract to
+the median to define the interval
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetRealInitPercent(ctx, median, percent)
+PGAContext *ctx
+double *median
+double *percent
+.fi
+.SH LOCATION
+real.c
+.SH EXAMPLE
+.nf
+Set the initialization routines to select a value for each real-valued
+gene i uniformly randomly from the interval [i-v,i+v], where $v = i/2$.
+Assumes all strings are the same length.
+
+PGAContext *ctx;
+double *median, *percent;
+int i, stringlen;
+:
+stringlen = PGAGetStringLength(ctx);
+median = (double *) malloc(stringlen*sizeof(double));
+percent = (double *) malloc(stringlen*sizeof(double));
+for(i=0;i<stringlen;i++) {
+median[i] = (double) i;
+percent[i] = 0.5;
+}
+PGASetRealInitPercent(ctx, median, percent);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man2/PGASetRealInitRange.2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man2/PGASetRealInitRange.2?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man2/PGASetRealInitRange.2 (added)
+++ spamassassin/trunk/build/pga/man/man2/PGASetRealInitRange.2 Sun May 28 18:31:49 2017
@@ -0,0 +1,60 @@
+.TH PGASetRealInitRange 2 "05/01/95" " " "PGAPack"
+.SH NAME
+PGASetRealInitRange \- sets the upper and lower bounds for randomly
+initializing real-valued genes.
+.SH DESCRIPTION
+For 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.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+min
+- array containing the lower bound of the interval for each gene
+.PD 0
+.TP
+mac
+- array containing the upper bound of the interval for each gene
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGASetRealInitRange(ctx, min, max)
+PGAContext *ctx
+double *min
+double *max
+.fi
+.SH LOCATION
+real.c
+.SH EXAMPLE
+.nf
+Set 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);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGACrossover.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGACrossover.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGACrossover.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGACrossover.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,70 @@
+.TH PGACrossover 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGACrossover \- performs crossover on two parent strings to create two
+child strings (via side-effect).
+.SH DESCRIPTION
+The type of crossover performed is
+either the default or that specified by PGASetCrossoverType
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+p1
+- the first parent string
+.PD 0
+.TP
+p2
+- the second parent string
+.PD 0
+.TP
+pop1
+- symbolic constant of the population containing string p1 and p2
+.PD 0
+.TP
+c1
+- the first child string
+.PD 0
+.TP
+c2
+- the second child string
+.PD 0
+.TP
+pop2
+- symbolic constant of the population to contain string c1 and c2
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+void PGACrossover(ctx, p1, p2, pop1, c1, c2, pop2)
+PGAContext *ctx
+int p1
+int p2
+int pop1
+int c1
+int c2
+int pop2
+.fi
+.SH LOCATION
+cross.c
+.SH EXAMPLE
+.nf
+Example:
+Perform crossover on the two parent strings mom and dad in population
+PGA_OLDPOP, and insert the child strings, child1 and child1, in
+population PGA_NEWPOP.
+
+PGAContext *ctx;
+int mom, dad, child1, child2;
+:
+PGACrossover(ctx, mom, dad, PGA_OLDPOP, child1, child2, PGA_NEWPOP);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverProb.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverProb.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverProb.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverProb.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,32 @@
+.TH PGAGetCrossoverProb 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetCrossoverProb \- Returns the crossover probability
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetCrossoverProb(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+cross.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+double pc;
+:
+pc = PGAGetCrossoverProb(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverType.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverType.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverType.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverType.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,43 @@
+.TH PGAGetCrossoverType 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetCrossoverType \- Returns the type of crossover selected
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetCrossoverType(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+cross.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int crosstype;
+:
+crosstype = PGAGetCrossoverType(ctx);
+switch (crosstype) {
+case PGA_CROSSOVER_ONEPT:
+printf("Crossover Type = PGA_CROSSOVER_ONEPT\n");
+break;
+case PGA_CROSSOVER_TWOPT:
+printf("Crossover Type = PGA_CROSSOVER_TWOPT\n");
+break;
+case PGA_CROSSOVER_UNIFORM:
+printf("Crossover Type = PGA_CROSSOVER_UNIFORM\n");
+break;
+}
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetMutationBoundedFlag.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetMutationBoundedFlag.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetMutationBoundedFlag.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetMutationBoundedFlag.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,34 @@
+.TH PGAGetMutationBoundedFlag 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMutationBoundedFlag \- returns PGA_TRUE or PGA_FALSE to indicate
+whether mutated integer strings remain in the range specified when
+initialized with PGASetIntegerInitRange.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetMutationBoundedFlag(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+mutation.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int val;
+:
+val = PGAGetMutationBoundedFlag(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetMutationIntegerValue.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetMutationIntegerValue.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetMutationIntegerValue.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetMutationIntegerValue.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,33 @@
+.TH PGAGetMutationIntegerValue 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMutationIntegerValue \- Returns the value of the multiplier
+used to mutate PGA_DATATYPE_INTEGER strings with.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetMutationIntegerValue(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+mutation.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int ival;
+:
+ival = PGAGetMutationIntegerValue(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetMutationProb.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetMutationProb.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetMutationProb.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetMutationProb.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,32 @@
+.TH PGAGetMutationProb 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMutationProb \- Returns the probability of mutation.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetMutationProb(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+mutation.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+double pm;
+:
+pm = PGAGetMutateProb(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetMutationRealValue.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetMutationRealValue.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetMutationRealValue.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetMutationRealValue.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,33 @@
+.TH PGAGetMutationRealValue 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMutationRealValue \- Returns the value of the multiplier used to
+mutate PGA_DATATYPE_REAL strings with.
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetMutationRealValue(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+mutation.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+double val;
+:
+val = PGAGetMutationRealValue(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetMutationType.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetMutationType.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetMutationType.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetMutationType.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,49 @@
+.TH PGAGetMutationType 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetMutationType \- Returns the type of mutation used
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetMutationType(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+mutation.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int mutatetype;
+:
+mutatetype = PGAGetMutationType(ctx);
+switch (mutatetype) {
+case PGA_MUTATION_CONSTANT:
+printf("Mutation Type = PGA_MUTATION_CONSTANT\n");
+break;
+case PGA_MUTATION_RANGE:
+printf("Mutation Type = PGA_MUTATION_RANGE\n");
+break;
+case PGA_MUTATION_UNIFORM:
+printf("Mutation Type = PGA_MUTATION_UNIFORM\n");
+break;
+case PGA_MUTATION_GAUSSIAN:
+printf("Mutation Type = PGA_MUTATION_GAUSSIAN\n");
+break;
+case PGA_MUTATION_PERMUTE:
+printf("Mutation Type = PGA_MUTATION_PERMUTE\n");
+break;
+}
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetPTournamentProb.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetPTournamentProb.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetPTournamentProb.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetPTournamentProb.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,33 @@
+.TH PGAGetPTournamentProb 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetPTournamentProb \- returns the probability of selecting the best
+string in a probabilistic binary tournament
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetPTournamentProb(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+select.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+double pt;
+:
+pt = PGAGetPTournamentProb(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetRestartAlleleChangeProb.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetRestartAlleleChangeProb.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetRestartAlleleChangeProb.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetRestartAlleleChangeProb.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,32 @@
+.TH PGAGetRestartAlleleChangeProb 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetRestartAlleleChangeProb \- returns the probability with which
+an allele will be mutated during a restart
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+double PGAGetRestartAlleleChangeProb(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+restart.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+:
+prob = PGASetRestartAlleleChangeProb(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetRestartFlag.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetRestartFlag.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetRestartFlag.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetRestartFlag.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,33 @@
+.TH PGAGetRestartFlag 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetRestartFlag \- returns whether the algorithm should employ the
+restart operator
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetRestartFlag(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+restart.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+int val;
+:
+val = PGAGetRestartFlag(ctx);
+
+.fi
Added: spamassassin/trunk/build/pga/man/man3/PGAGetRestartFrequencyValue.3
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/man/man3/PGAGetRestartFrequencyValue.3?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/man/man3/PGAGetRestartFrequencyValue.3 (added)
+++ spamassassin/trunk/build/pga/man/man3/PGAGetRestartFrequencyValue.3 Sun May 28 18:31:49 2017
@@ -0,0 +1,36 @@
+.TH PGAGetRestartFrequencyValue 3 "05/01/95" " " "PGAPack"
+.SH NAME
+PGAGetRestartFrequencyValue \- returns the number of iterations of no
+change in the best string after which the algorithm should restart
+.SH INPUT PARAMETERS
+.PD 0
+.TP
+ctx
+- context variable
+.PD 0
+.TP
+numiter
+- number of changeless iterations
+.PD 1
+.SH OUTPUT PARAMETERS
+.PD 0
+.TP
+none
+
+.PD 1
+.SH SYNOPSIS
+.nf
+#include "pgapack.h"
+int PGAGetRestartFrequencyValue(ctx)
+PGAContext *ctx
+.fi
+.SH LOCATION
+restart.c
+.SH EXAMPLE
+.nf
+Example:
+PGAContext *ctx;
+:
+numiter = PGAGetRestartFrequencyValue(ctx);
+
+.fi