IFitFunctionWithGradient Type

Instance members

Instance member Description

this.EvaluateGradient

Full Usage: this.EvaluateGradient

Parameters:
    independent : float[] - The independent variables.
    parameters : float[] - Parameters for evaluation.
    DF : float[][] - On return, this array contains the one (or more) evaluated derivatives of the function values with respect to there parameters. See remarks for the order in which they are stored.

Modifiers: abstract

This evaluates the gradient of the function with respect to the parameters.

The function values, that are calculated by IFitFunction.Evaluate, are stored in the array FV. For every function value, the derivative to all given parameters must be calculated. Presumed we have 3 parameters and 2 function values, on return the array DF must contain:

            DF[0][0] : df0/dp0
            DF[0][1] : df0/dp1
            DF[0][2] : df0/dp2
            DF[1][0] : df1/dp0
            DF[1][1] : df2/dp1
            DF[1][2] : df1/dp2

independent : float[]

The independent variables.

parameters : float[]

Parameters for evaluation.

DF : float[][]

On return, this array contains the one (or more) evaluated derivatives of the function values with respect to there parameters. See remarks for the order in which they are stored.