Click or drag to resize

LinearRegression(DoubleMatrix, DoubleVector) Constructor

Constructs a LinearRegression instance with the specifed regresssion matrix and observation vector. By default, the model parameter values are computed using a QR factorization.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public LinearRegression(
	DoubleMatrix A,
	DoubleVector obs
)

Parameters

A  DoubleMatrix
A regression matrix.
obs  DoubleVector
A vector of observations.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the number of rows in the regression matrix is not equal to the length of the observation vector.
See Also