|
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
Syntax public static Func<double[], double[]> Gradient(
Func<double[], double> function,
int variables,
int order = 1
)
Public Shared Function Gradient (
function As Func(Of Double(), Double),
variables As Integer,
Optional order As Integer = 1
) As Func(Of Double(), Double())
Request Example
View SourceParameters
- function
- Type: SystemFuncDouble, Double
The function to be differentiated. - variables
- 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,
DoubleThe gradient function of the given
function.
See Also