64 return round(exp($this->slope), $dp);
67 return exp($this->slope);
80 return round(exp($this->intersect), $dp);
83 return exp($this->intersect);
94 $adjustedYValues = array_map(
96 return ($value < 0.0) ? 0 - log(abs($value)) : log($value);
getValueOfYForX($xValue)
Return the Y-Value for a specified value of X.
getIntersect($dp=0)
Return the Value of X where it intersects Y = 0.
getEquation($dp=0)
Return the Equation of the best-fit line.
__construct($yValues, $xValues=[], $const =true)
Define the regression and calculate the goodness of fit for a set of X and Y data values...
exponentialRegression(array $yValues, array $xValues, bool $const)
Execute the regression and calculate the goodness of fit for a set of X and Y data values...
getValueOfXForY($yValue)
Return the X-Value for a specified value of Y.
getSlope($dp=0)
Return the Slope of the line.
leastSquareFit(array $yValues, array $xValues, bool $const)