Method | Description | |
---|---|---|
Evaluate ( IChromosome chromosome ) : double |
Evaluates chromosome. The method calculates fitness value of the specified chromosome. |
|
SymbolicRegressionFitness ( double data, double constants ) : System |
Initializes a new instance of the SymbolicRegressionFitness class. The data parameter defines the function to be approximated and represents a two dimensional array of (x, y) points. The constants parameter is an array of constants, which can be used as additional variables for a genetic expression. The actual amount of variables for genetic expression equals to the amount of constants plus one - the x variable. |
|
Translate ( IChromosome chromosome ) : string |
Translates genotype to phenotype . The method returns string value, which represents approximation expression written in polish postfix notation. |
public Evaluate ( IChromosome chromosome ) : double | ||
chromosome | IChromosome | Chromosome to evaluate. |
return | double |
public SymbolicRegressionFitness ( double data, double constants ) : System | ||
data | double | Function to be approximated. |
constants | double | Array of constants to be used as additional /// paramters for genetic expression. |
return | System |
public Translate ( IChromosome chromosome ) : string | ||
chromosome | IChromosome | Chromosome, which genoteype should be /// translated to phenotype. |
return | string |