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.
' * log(X)';
72 $xValues = array_map(
'log',$xValues);
78 function __construct($yValues, $xValues=array(), $const=True) {
79 if (parent::__construct($yValues, $xValues) !== False) {