ISplineKernel1D.Evaluate Method

Computes the interpolated value at the specified coordinate.

Definition

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

Parameters

t  Double
The target coordinate in physical units. Should typically lie within the range spanned by x, though kernels may extrapolate if needed.
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

Double
The interpolated value at coordinate t.

Remarks

This method must not allocate memory and should be suitable for use in tight evaluation loops.

See Also