Click or drag to resize

QRRegressionCalculationCalculateParameters(DoubleMatrix, DoubleVector, Boolean) 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,
	bool dataCleansed
)

Parameters

regressionMatrix  DoubleMatrix
A regression matrix.
observations  DoubleVector
A vector of observations.
dataCleansed  Boolean
If true, the regression matrix is guaranteed to contain no NaN or Infinity values.

Return Value

DoubleVector
The calculated model parameters.

Implements

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