LinearRegression Constructor |
Performs a linear regression on the data points (y[i], x[i]).
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic 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
See Also