Click or drag to resize
Accord.NET (logo)

FiniteDifferencesGradient Method (Double, Double)

Computes the gradient at the given point x, storing the result at result.

Namespace:  Accord.Math.Differentiation
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public double[] Gradient(
	double[] x,
	double[] result
)
Request Example View Source

Parameters

x
Type: SystemDouble
The point where to compute the gradient.
result
Type: SystemDouble
The gradient of the function evaluated at point x.

Return Value

Type: Double
See Also