Initializes a new instance of the SymbolicRegressionFitness class.
Namespace:
AForge.GeneticAssembly: AForge.Genetic (in AForge.Genetic.dll) Version: 2.2.4.0 (2.2.4.0)
Syntax
Parameters
- data
- Type: array<
System..::.Double
,2>[,](,)[,]
Function to be approximated.
- constants
- Type: array<
System..::.Double
>[]()[]
Array of constants to be used as additional paramters for genetic expression.
Remarks
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.