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

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

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.

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.
Результат System
        public SymbolicRegressionFitness( double[,] data, double[] constants )
        {
            this.data = data;
            // copy constants
            variables = new double[constants.Length + 1];
            Array.Copy( constants, 0, variables, 1, constants.Length );
        }