Click or drag to resize
Accord.NET (logo)

OptimizationFunction2DTranslate Method

Translates genotype to phenotype

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.7.0
Syntax
public double[] Translate(
	IChromosome chromosome
)
Request Example View Source

Parameters

chromosome
Type: Accord.GeneticIChromosome
Chromosome, which genoteype should be translated to phenotype

Return Value

Type: Double
Returns chromosome's fenotype - the actual solution encoded by the chromosome
Remarks
The method returns array of two double values, which represent function's input point (X and Y) encoded by the specified chromosome.
See Also