29 require_once PHPEXCEL_ROOT .
'PHPExcel/Shared/trend/bestFitClass.php';
82 return 'Y = '.$intersect.
' * X^'.$slope;
94 return round(exp($this->_intersect),$dp);
96 return exp($this->_intersect);
108 foreach($xValues as &$value) {
110 $value = 0 - log(abs($value));
111 } elseif ($value > 0.0) {
112 $value = log($value);
116 foreach($yValues as &$value) {
118 $value = 0 - log(abs($value));
119 } elseif ($value > 0.0) {
120 $value = log($value);
137 if (parent::__construct($yValues, $xValues) !== False) {
getIntersect($dp=0)
Return the Value of X where it intersects Y = 0.
getValueOfYForX($xValue)
Return the Y-Value for a specified value of X.
_power_regression($yValues, $xValues, $const)
Execute the regression and calculate the goodness of fit for a set of X and Y data values...
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.
__construct($yValues, $xValues=array(), $const=True)
Define 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.
_leastSquareFit($yValues, $xValues, $const)