public class SimpleLinearRegression extends Object
Constructor and Description |
---|
SimpleLinearRegression() |
Modifier and Type | Method and Description |
---|---|
static double[] |
regres(Vec xData,
Vec yData)
Performs a Simple Linear Regression on the data set, calculating the best fit a and b such that y = a + b * x
|
public static double[] regres(Vec xData, Vec yData)
yData
- the Y data set (to be predicted)xData
- the X data set (the predictor)Copyright © 2017. All rights reserved.