I am trying to get the slope for the best first line:
SimpleRegression simpleRegression = new SimpleRegression();
simpleRegression.addData(...);
...
simpleRegression.getSlope()
simpleRegression.getIntercept()
I am trying to get it to force through zero though so the formula can be reduced down to y=mx
How should I go about this?