Constructs a least squares B-spline approximation to the given data points.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public BsLeastSquares(
	double[] xData,
	double[] yData,
	int nCoef,
	int order,
	double[] weight,
	double[] knot
)
Visual Basic (Declaration)
Public Sub New ( _
	xData As Double(), _
	yData As Double(), _
	nCoef As Integer, _
	order As Integer, _
	weight As Double(), _
	knot As Double() _
)
Visual C++
public:
BsLeastSquares(
	array<double>^ xData, 
	array<double>^ yData, 
	int nCoef, 
	int order, 
	array<double>^ weight, 
	array<double>^ knot
)

Parameters

xData
Type: array< System..::.Double >[]()[]
A double array containing the x-coordinates of the data.
yData
Type: array< System..::.Double >[]()[]
A double array containing the y-coordinates of the data. The arrays xData and yData must have the same length.
nCoef
Type: System..::.Int32
A int denoting the linear dimension of the spline subspace. It should be smaller than the number of data points and greater than or equal to the order of the spline.
order
Type: System..::.Int32
A int denoting the order of the spline.
weight
Type: array< System..::.Double >[]()[]
A double array containing the weights for the data. The arrays xData, yDataa and weight must have the same length.
knot
Type: array< System..::.Double >[]()[]
A double array containing the knot sequence for the spline.

See Also