Translates genotype to phenotype.

Namespace:  AForge.Genetic
Assembly:  AForge.Genetic (in AForge.Genetic.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public string Translate(
	IChromosome chromosome
)

Parameters

chromosome
Type: AForge.Genetic..::.IChromosome
Chromosome, which genoteype should be translated to phenotype.

Return Value

Returns chromosome's fenotype - the actual solution encoded by the chromosome.

Remarks

The method returns string value, which represents prediction expression written in polish postfix notation.

The interpretation of the prediction expression is very simple. For example, let's take a look at sample expression, which was received with window size equal to 5:

Copy 
$0 $1 - $5 / $2 *
The above expression in postfix polish notation should be interpreted as a next expression:
Copy 
( ( x[t - 1] - x[t - 2] ) / const1 ) * x[t - 3]

See Also