|
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
)
Public Shared Function Derivative (
function As Func(Of Double, Double),
value As Double,
order As Integer,
stepSize As Double
) As Double
Request Example
View SourceParameters
- 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:
DoubleThe derivative of the function at the point
value.
See Also