|
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
)
Public Shared Function FromData (
x As Double(),
y As Double()
) As SimpleLinearRegression
Request Example
View SourceParameters
- x
- Type: SystemDouble
The input vectors x. - y
- Type: SystemDouble
The output vectors y.
Return Value
Type:
SimpleLinearRegressionA linear regression f(x) that most approximates y.
See Also