Click or drag to resize
Accord.NET (logo)

FiniteDifferencesGradient Method (FuncDouble, Double, Int32, Int32)

Obtains the gradient function for a multidimensional function.

Namespace:  Accord.Math.Differentiation
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
public static Func<double[], double[]> Gradient(
	Func<double[], double> function,
	int variables,
	int order = 1
Request Example View Source


Type: SystemFuncDouble, Double
The function to be differentiated.
Type: SystemInt32
The number of parameters for the function.
order (Optional)
Type: SystemInt32
The derivative order that should be obtained. Default is 1.

Return Value

Type: FuncDouble, Double
The gradient function of the given function.
See Also