Click or drag to resize
Accord.NET (logo) MultipleLinearRegressionFromCoefficients Method

Note: This API is now obsolete.

Creates a new linear regression from the regression coefficients.

Namespace:  Accord.Statistics.Models.Regression.Linear
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.4.0
Syntax
[ObsoleteAttribute("Please use the parameterless constructor and set Weights and Intercept directly.")]
public static MultipleLinearRegression FromCoefficients(
	double[] coefficients,
	bool intercept
)
Request Example View Source

Parameters

coefficients
Type: SystemDouble
The linear coefficients.
intercept
Type: SystemBoolean
Whether to include an intercept (bias) term.

Return Value

Type: MultipleLinearRegression
A linear regression with the given coefficients.
See Also