ISpline Kernel 1D.Evaluate With Derivatives Method
Computes the interpolated value and its first and second derivatives with respect to the coordinate.
Definition
Namespace: Numerics.NET.Curves.Surfaces
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
C#
A tuple containing:
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
(double , double , double ) EvaluateWithDerivatives(
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, Double>A tuple containing:
- Item1: The interpolated value at t
- Item2: The first derivative df/dt at t
- Item3: The second derivative d²f/dt² at t
Remarks
Both derivatives are computed with respect to the physical coordinate, not a normalized parameter.
This method must not allocate memory.