Finite Difference Method.Estimate Derivative Method
Definition
Namespace: Numerics.NET.Calculus
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Estimate | Estimates the derivative of a function at a point. |
Estimate | Estimates the derivative of a function at a point. |
Estimate | Estimates the derivative of a function at a point using a fixed step size. |
Estimate | Estimates the derivative of a function at a point. |
EstimateDerivative(Func<Double, Double>, Double)
Estimates the derivative of a function at a point.
public double EstimateDerivative(
Func<double, double> function,
double x
)
Parameters
- function Func<Double, Double>
- The function to differentiate.
- x Double
- The point at which to evaluate the derivative of function.
Return Value
DoubleThe derivative of order DerivativeOrder of function at x.
EstimateDerivative(Func<Double, Double>, Double, Boolean)
Estimates the derivative of a function at a point.
public double EstimateDerivative(
Func<double, double> function,
double x,
bool adaptive
)
Parameters
- function Func<Double, Double>
- The function to differentiate.
- x Double
- The point at which to evaluate the derivative of function.
- adaptive Boolean
- If true, the step size is computed based on the function values around the points where the function's derivative is requested. If false (the default), a default step size is used.
Return Value
DoubleThe derivative of order DerivativeOrder of function at x.
EstimateDerivative(Func<Double, Double>, Double, Double)
Estimates the derivative of a function at a point using a fixed step size.
public double EstimateDerivative(
Func<double, double> function,
double x,
double stepSize
)
Parameters
- function Func<Double, Double>
- The function to differentiate.
- x Double
- The point at which to evaluate the derivative of function.
- stepSize Double
- The step size to use.
Return Value
DoubleThe derivative of order DerivativeOrder of function at x.
EstimateDerivative(Func<Double, Double>, Double, Boolean, Double, Double, Double)
Estimates the derivative of a function at a point.
public double EstimateDerivative(
Func<double, double> function,
double x,
bool adaptive = false,
double xMin = -1.79769313486232E+308,
double xMax = 1.79769313486232E+308,
double noiseFactor = 10
)
Parameters
- function Func<Double, Double>
- The function to differentiate.
- x Double
- The point at which to evaluate the derivative of function.
- adaptive Boolean (Optional)
- Optional. If true, the step size is computed based on the function values around the points where the function's derivative is requested. If false (the default), a default step size is used.
- xMin Double (Optional)
- Optional. The smallest value for which the function may be evaluated. The default is MinValue.
- xMax Double (Optional)
- Optional. The largest value for which the function may be evaluated. The default is MaxValue.
- noiseFactor Double (Optional)
- Optional. An estimate for the noise in the function values relative to the machine precision. The default is 10.
Return Value
DoubleThe derivative of order DerivativeOrder of function at x.