29 require_once(PHPEXCEL_ROOT .
'PHPExcel/Shared/trend/bestFitClass.php');
82 return 'Y = '.$intersect.
' + '.$slope.
' * log(X)';
94 foreach($xValues as &$value) {
96 $value = 0 - log(abs($value));
97 } elseif ($value > 0.0) {
115 if (parent::__construct($yValues, $xValues) !== False) {
getIntersect($dp=0)
Return the Value of X where it intersects Y = 0.
getValueOfXForY($yValue)
Return the X-Value for a specified value of Y.
getValueOfYForX($xValue)
Return the Y-Value for a specified value of X.
getEquation($dp=0)
Return the Equation of the best-fit line.
getSlope($dp=0)
Return the Slope of the line.
_logarithmic_regression($yValues, $xValues, $const)
Execute the regression and calculate the goodness of fit for a set of X and Y data values...
__construct($yValues, $xValues=array(), $const=True)
Define the regression and calculate the goodness of fit for a set of X and Y data values...
Create styles array
The data for the language used.
_leastSquareFit($yValues, $xValues, $const)