Parameters
int
points
Number of points for finite difference derivatives.
int
center
Location of the center with respect to other points. Value ranges from zero to points-1.
Type NumericalDerivative
Namespace MathNet.Numerics.Differentiation
int
pointsNumber of points for finite difference derivatives.
int
centerLocation of the center with respect to other points. Value ranges from zero to points-1.
Func<double, double>
fInput function handle.
int
orderDerivative order.
Func<double, double>
Function handle that evaluates the derivative of input function at a fixed order.
Func<Double[], double>
fInput function handle.
Int32[]
parameterIndexVector of indices for the independent variables at descending derivative orders.
int
orderHighest derivative order.
Func<Double[], double>
Function handle that evaluates the fixed mixed partial derivative of input function at fixed order.
Func<Double[], double>
fInput function handle.
int
parameterIndexIndex of the independent variable for partial derivative.
int
orderDerivative order.
Func<Double[], double>
Function handle that evaluates partial derivative of input function at a fixed order.
Double[]
pointsVector of points StepSize apart.
int
orderDerivative order.
double
stepSizeFinite difference step size.
double
Derivative of points of the specified order.
Supplying the optional argument currentValue will reduce the number of function evaluations required to calculate the finite difference derivative.
Func<double, double>
fFunction handle.
double
xPoint at which to compute the derivative.
int
orderDerivative order.
Nullable<double>
currentValueCurrent function value at center.
double
Function derivative at x of the specified order.
This function recursively uses EvaluatePartialDerivative to evaluate mixed partial derivative. Therefore, it is more efficient to call EvaluatePartialDerivative for higher order derivatives of a single independent variable.
Func<Double[], double>
fMultivariate function handle.
Double[]
xPoints at which to evaluate the derivative.
Int32[]
parameterIndexVector of indices for the independent variables at descending derivative orders.
int
orderHighest order of differentiation.
Nullable<double>
currentValueCurrent function value at center.
double
Function mixed partial derivative at x of the specified order.
Func<Double[], double>
fMultivariate function handle.
Double[]
xVector at which to evaluate the derivative.
int
parameterIndexIndex of independent variable for partial derivative.
int
orderDerivative order.
Nullable<double>
currentValueCurrent function value at center.
double
Function partial derivative at x of the specified order.
Setting then getting the StepSize may return a different value. This is not unusual since a user-defined step size is converted to a base-2 representable number to improve finite difference accuracy.