29 require_once PHPEXCEL_ROOT .
'PHPExcel/Shared/trend/bestFitClass.php';
58 return 'Y = '.$intersect.
' * X^'.$slope;
64 return round(exp($this->_intersect),$dp);
66 return exp($this->_intersect);
71 foreach($xValues as &$value) {
73 $value = 0 - log(abs($value));
74 } elseif ($value > 0.0) {
79 foreach($yValues as &$value) {
81 $value = 0 - log(abs($value));
82 } elseif ($value > 0.0) {
92 function __construct($yValues, $xValues=array(), $const=True) {
93 if (parent::__construct($yValues, $xValues) !== False) {