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.
' * X^'.$slope;
72 return round(exp($this->_intersect),$dp);
74 return exp($this->_intersect);
80 sort($mArray,SORT_NUMERIC);
81 $xValues = array_map(
'log',$xValues);
82 $yValues = array_map(
'log',$yValues);
88 function __construct($yValues, $xValues=array(), $const=True) {
89 if (parent::__construct($yValues, $xValues) !== False) {