29 require_once(PHPEXCEL_ROOT .
'PHPExcel/Shared/trend/bestFitClass.php');
82 return 'Y = '.$intersect.
' + '.$slope.
' * X';
106 if (parent::__construct($yValues, $xValues) !== False) {
__construct($yValues, $xValues=array(), $const=True)
Define the regression and calculate the goodness of fit for a set of X and Y data values...
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.
getValueOfXForY($yValue)
Return the X-Value for a specified value of Y.
getSlope($dp=0)
Return the Slope of the line.
getEquation($dp=0)
Return the Equation of the best-fit line.
Create styles array
The data for the language used.
_linear_regression($yValues, $xValues, $const)
Execute the regression and calculate the goodness of fit for a set of X and Y data values...
_leastSquareFit($yValues, $xValues, $const)