Click or drag to resize

BSpline1DcreateInterpBSpline Method

Creates an interpolating B-spline and optionally enforces sorted data or equally spaced knots.

Namespace: Altaxo.Calc.Interpolation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
protected static BSpline1D createInterpBSpline(
	IReadOnlyList<double> x,
	IReadOnlyList<double> y,
	int degree,
	bool areDataSortedByX = false,
	bool createEquallySpacedKnots = false
)

Parameters

x  IReadOnlyListDouble
The x coordinates of the samples.
y  IReadOnlyListDouble
The y coordinates of the samples.
degree  Int32
The spline degree.
areDataSortedByX  Boolean  (Optional)
True to treat the data as sorted by x.
createEquallySpacedKnots  Boolean  (Optional)
True to force equally spaced knots.

Return Value

BSpline1D
A configured BSpline1D instance.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when the data lengths are invalid for the requested degree.
See Also