Click or drag to resize

PolynomialLeastSquares(Int32, DoubleVector, DoubleVector, Double) Constructor

Constructs a PolynomialLeastSquares instances that fits the given data.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public PolynomialLeastSquares(
	int degree,
	DoubleVector x,
	DoubleVector y,
	double rankTolerance
)

Parameters

degree  Int32
The degree of the desired fitted polynomial.
x  DoubleVector
The x data.
y  DoubleVector
The y data.
rankTolerance  Double
Tolerance used to compute the effective rank of the design matrix in the least squares calculation.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if the vectors are null or they contain no points. Also thrown if the degree is not positive. the
MismatchedSizeExceptionThrown if the vectors have unequal lengths.
See Also