xegaGaGeneMapGray: Map the bit strings of a gray-coded gene to parameters in an...

View source: R/xegaGaDecode.R

xegaGaGeneMapGrayR Documentation

Map the bit strings of a gray-coded gene to parameters in an interval.

Description

xegaGaGeneMapGray() maps the bit strings of a binary string interpreted as Gray codes to parameters in an interval. Bit vectors are mapped into equispaced numbers in the interval. Examples: Optimization of problems with real-valued parameter vectors.

Usage

xegaGaGeneMapGray(gene, penv)

Arguments

gene

A binary gene (the genotype).

penv

A problem environment.

Value

The decoded gene (the phenotype).

See Also

Other Decoder: xegaGaDecodeGene(), xegaGaGeneMap(), xegaGaGeneMapIdentity(), xegaGaGeneMapPerm()

Examples

gene<-xegaGaInitGene(lFxegaGaGene)
xegaGaGeneMapGray(gene$gene1, lFxegaGaGene$penv)


xegaGaGene documentation built on April 16, 2025, 5:11 p.m.