CubicSpline.CreateTensorKernel Method

Constructs a cubic spline that uses the Hermite kernel in tensor product splines.

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
C#
public static CubicSpline CreateTensorKernel(
	ReadOnlySpan<double> xValues,
	ReadOnlySpan<double> yValues,
	GridBoundaryCondition boundaryCondition
)

Parameters

xValues  ReadOnlySpan<Double>
A list of Double values that contains the x-values of the data points.
yValues  ReadOnlySpan<Double>
A list of Double values that contains the y-values corresponding to the values in xValues.
boundaryCondition  GridBoundaryCondition
The boundary condition to apply at the edges of the spline.

Return Value

CubicSpline

Remarks

This method creates a cubic spline that is equivalent to a 1-dimensional cubic tensor-product spline.

Exceptions

DimensionMismatchException

The length of xValues does not equal the length of yValues.

See Also