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.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public LinearRegression(
	DoubleMatrix A,
	DoubleVector obs
)
Visual Basic (Declaration)
Public Sub New ( _
	A As DoubleMatrix, _
	obs As DoubleVector _
)
Visual C++
public:
LinearRegression(
	DoubleMatrix^ A, 
	DoubleVector^ obs
)

Parameters

A
Type: CenterSpace.NMath.Core..::.DoubleMatrix
A regression matrix.
obs
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of observations.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeExceptionThrown if the number of rows in the regression matrix is not equal to the length of the observation vector.

See Also