Package arc.math
Class LinearRegression
java.lang.Object
arc.math.LinearRegression
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
intercept
public float intercept -
slope
public float slope
-
-
Constructor Details
-
LinearRegression
public LinearRegression()
-
-
Method Details
-
calculate
Performs a linear regression on the data points. -
predict
public float predict(float x) - Returns:
- the expected response
y
given the value of the predictor variablex
.
-