FiniteDifferenceMethod.FromOffsets 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#
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

FiniteDifferenceMethod

Exceptions

ArgumentNullException

offsets is null.

ArgumentOutOfRangeException

derivativeOrder is less than zero.

See Also