| LinearRegression Class |
Namespace: Algs4Net
public class LinearRegression
The LinearRegression type exposes the following members.
| Name | Description | |
|---|---|---|
| LinearRegression |
Performs a linear regression on the data points (y[i], x[i]). |
| Name | Description | |
|---|---|---|
| Intercept |
Returns the Y-intercept α of the best of the best-fit line Y = α + β X. | |
| InterceptStdErr |
Returns the standard error of the estimate for the intercept. | |
| R2 |
Returns the coefficient of determination R2. | |
| Slope |
Returns the slope β of the best of the best-fit line Y = α + β X. | |
| SlopeStdErr |
Returns the standard error of the estimate for the slope. |
| Name | Description | |
|---|---|---|
| MainTest |
Demo test the LinearRegression data type. | |
| Predict |
Returns the expected response y given the value of the predictor
variable x. | |
| ToString |
Returns a string representation of the simple linear regression model. (Overrides ObjectToString.) |