30 if (!defined(
'PHPEXCEL_ROOT')) {
34 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../../../');
37 require_once(PHPEXCEL_ROOT .
'PHPExcel/Shared/trend/bestFitClass.php');
66 return 'Y = '.$intersect.
' * '.$slope.
'^X';
72 return round(exp($this->_slope),$dp);
74 return exp($this->_slope);
80 return round(exp($this->_intersect),$dp);
82 return exp($this->_intersect);
88 $yValues = array_map(
'log',$yValues);
94 function __construct($yValues, $xValues=array(), $const=True) {
95 if (parent::__construct($yValues, $xValues) !== False) {