Click or drag to resize
Accord.NET (logo)

SimpleLinearRegressionFromData Method

Creates a new linear regression directly from data points.

Namespace:  Accord.Statistics.Models.Regression.Linear
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static SimpleLinearRegression FromData(
	double[] x,
	double[] y
)
Request Example View Source

Parameters

x
Type: SystemDouble
The input vectors x.
y
Type: SystemDouble
The output vectors y.

Return Value

Type: SimpleLinearRegression
A linear regression f(x) that most approximates y.
See Also