Click or drag to resize

BSpline1DcreateApproxBSpline Method

Creates an approximating B-spline with the requested number of control points.

Namespace: Altaxo.Calc.Interpolation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static BSpline1D createApproxBSpline(
	IReadOnlyList<double> x,
	IReadOnlyList<double> y,
	int degree,
	int hp1,
	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.
hp1  Int32
The number of control points h + 1.
createEquallySpacedKnots  Boolean  (Optional)
True to use uniformly spaced knots.

Return Value

BSpline1D
A BSpline1D approximating the samples.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when the data lengths are invalid for the requested degree.
ArgumentOutOfRangeExceptionThrown when hp1 is not greater than the degree.
See Also