Finite Difference Method.From Offsets Method
Constructs a new finite differences method for the specified order of derivative
that uses the specified set of points to approximate the derivative.
Definition
Namespace: Numerics.NET.Calculus
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static FiniteDifferenceMethod FromOffsets(
int derivativeOrder,
ReadOnlySpan<int> offsets
)
Parameters
- derivativeOrder Int32
- The order of the derivative to compute.
- offsets ReadOnlySpan<Int32>
- An array containing the distance between the points where the function is evaluated and the point where the derivative is requested, in units of the stepsize.
Return Value
FiniteDifferenceMethodExceptions
Argument | offsets is null. |
Argument | derivativeOrder is less than zero. |