linearRegression(array $yValues, array $xValues, bool $const)
Execute the regression and calculate the goodness of fit for a set of X and Y data values...
getEquation($dp=0)
Return the Equation of the best-fit line.
getIntersect($dp=0)
Return the Value of X where it intersects Y = 0.
getSlope($dp=0)
Return the Slope of the line.
getValueOfYForX($xValue)
Return the Y-Value for a specified value of X.
getValueOfXForY($yValue)
Return the X-Value for a specified value of Y.
__construct($yValues, $xValues=[], $const =true)
Define the regression and calculate the goodness of fit for a set of X and Y data values...
leastSquareFit(array $yValues, array $xValues, bool $const)