Click or drag to resize

QRRegressionCalculationCalculateParameters(DoubleMatrix, DoubleVector) Method

Calculates the parameters for the regression using a QR decomposition of the regression matrix to solve the least squares problem.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public DoubleVector CalculateParameters(
	DoubleMatrix regressionMatrix,
	DoubleVector observations
)

Parameters

regressionMatrix  DoubleMatrix
A regression matrix.
observations  DoubleVector
A vector of observations.

Return Value

DoubleVector
The calculated model parameters.

Implements

IRegressionCalculationCalculateParameters(DoubleMatrix, DoubleVector)
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the length of the observation vector is not equal to the number of rows in the regression matrix.
See Also