Click or drag to resize
Accord.NET (logo)

FiniteDifferencesDerivative Method (FuncDouble, Double, Double, Int32, Double)

Computes the derivative for a simpler unidimensional function.

Namespace:  Accord.Math.Differentiation
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static double Derivative(
	Func<double, double> function,
	double value,
	int order,
	double stepSize
)
Request Example View Source

Parameters

function
Type: SystemFuncDouble, Double
The function to be differentiated.
value
Type: SystemDouble
The value x at which the derivative should be evaluated.
order
Type: SystemInt32
The derivative order that should be obtained. Default is 1.
stepSize
Type: SystemDouble
The relative step size used to approximate the derivatives. Default is 0.01.

Return Value

Type: Double
The derivative of the function at the point value.
See Also