29 require_once(PHPEXCEL_ROOT .
'PHPExcel/Shared/trend/bestFitClass.php');
82 return 'Y = '.$intersect.
' * '.$slope.
'^X';
94 return round(exp($this->_slope),$dp);
96 return exp($this->_slope);
108 return round(exp($this->_intersect),$dp);
110 return exp($this->_intersect);
122 foreach($yValues as &$value) {
124 $value = 0 - log(abs($value));
125 } elseif ($value > 0.0) {
126 $value = log($value);
143 if (parent::__construct($yValues, $xValues) !== False) {
getEquation($dp=0)
Return the Equation of the best-fit 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=array(), $const=True)
Define 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.
Create styles array
The data for the language used.
getIntersect($dp=0)
Return the Value of X where it intersects Y = 0.
_exponential_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)