Click or drag to resize
Accord.NET (logo)

SymbolicRegressionFitness Constructor

Initializes a new instance of the SymbolicRegressionFitness class.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
public SymbolicRegressionFitness(
	double[,] data,
	double[] constants
Request Example View Source


Type: SystemDouble
Function to be approximated.
Type: SystemDouble
Array of constants to be used as additional paramters for genetic expression.

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.

See Also