AForge.Genetic.TimeSeriesPredictionFitness.Translate C# (CSharp) Метод

Translate() публичный Метод

Translates genotype to phenotype.

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: $0 $1 - $5 / $2 * The above expression in postfix polish notation should be interpreted as a next expression: ( ( x[t - 1] - x[t - 2] ) / const1 ) * x[t - 3]

public Translate ( IChromosome chromosome ) : string
chromosome IChromosome Chromosome, which genoteype should be /// translated to phenotype.
Результат string
		public string Translate( IChromosome chromosome )
		{
			// return polish notation for now ...
			return chromosome.ToString( );
		}
	}