Click or drag to resize
MultipleRegressionDirectMethodT Method (Matrix`1T, Vector`1T, DirectRegressionMethod)
Find the model parameters β such that X*β with predictor X becomes as close to response Y as possible, with least squares residuals.

Namespace:  MathNet.Numerics.LinearRegression
Assembly:  MathNet.Numerics (in MathNet.Numerics.dll) Version: 3.7
Syntax
C#
public static Vector<T> DirectMethod<T>(
	Matrix<T> x,
	Vector<T> y,
	DirectRegressionMethod method = DirectRegressionMethod.NormalEquations
)
where T : struct, new(), IEquatable<T>, IFormattable

Parameters

x
Type: MatrixT
Predictor matrix X
y
Type: VectorT
Response vector Y
method (Optional)
Type: MathNet.Numerics.LinearRegressionDirectRegressionMethod
The direct method to be used to compute the regression.

Type Parameters

T

Return Value

Type: VectorT
Best fitting vector for model parameters β
See Also