IMSL C# Numerical Library

BsLeastSquares Constructor (Double[], Double[], Int32)

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

public BsLeastSquares(
   double[] xData,
   double[] yData,
   int nCoef
);

Parameters

xData
A double array containing the x-coordinates of the data.
yData
A double array containing the y-coordinates of the data. The arrays xData and yData must have the same length.
nCoef
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 (whose default value is 4).

See Also

BsLeastSquares Class | Imsl.Math Namespace | BsLeastSquares Constructor Overload List