Click or drag to resize
LinearRegression Constructor
Performs a linear regression on the data points (y[i], x[i]).

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public LinearRegression(
	double[] x,
	double[] y
)

Parameters

x
Type: SystemDouble
the values of the predictor variable
y
Type: SystemDouble
the corresponding values of the response variable
Exceptions
ExceptionCondition
ArgumentExceptionif the lengths of the two arrays are not equal
See Also