ISplineKernel1D.EvaluateWithDerivative Method

Computes the interpolated value and its first derivative with respect to the coordinate.

Definition

Namespace: Numerics.NET.Curves.Surfaces
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
C#
(double , double ) EvaluateWithDerivative(
	double t,
	ReadOnlySpan<double> x,
	ReadOnlySpan<double> f
)

Parameters

t  Double
The target coordinate in physical units.
x  ReadOnlySpan<Double>
The sample locations (knot positions) used by the kernel. Length must equal Width.
f  ReadOnlySpan<Double>
The function values at the sample locations. Length must equal Width.

Return Value

ValueTuple<Double, Double>
A tuple containing:
  • Item1: The interpolated value at t
  • Item2: The first derivative df/dt at t

Remarks

The derivative is computed with respect to the physical coordinate, not a normalized parameter.

This method must not allocate memory.

See Also