View source: R/xegaGeInitGene.R
xegaGeInitGene | R Documentation |
xegaGeInitGene()
generates a random binary gene
with a given length.
xegaGeInitGene(lF)
lF |
the local configuration of the genetic algorithm |
In the binary representation of
package xega
, gene is a list with
$evaluated
Boolean: TRUE if the fitness is known.
$fit
The fitness of the genotype of
$gene1
$gene1
a bit string (the genetopye).
This representation makes several code optimizations and generalizations easier.
a binary gene (a named list):
$evaluated
: FALSE. See package xegaEvalGene
$evalFail
: FALSE. Set by the error handler(s)
in package xegaEvalGene
in the case of failure.
$fit
: Fitness vector.
$gene1
: Binary gene.
xegaGeInitGene(lFxegaGeGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.