public function PHPExcel_Power_Best_Fit::getEquation in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php \PHPExcel_Power_Best_Fit::getEquation()
* Return the Equation of the best-fit line * *
Parameters
int $dp Number of places of decimal precision to display: * @return string *
Overrides PHPExcel_Best_Fit::getEquation
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ trend/ powerBestFitClass.php, line 78
Class
- PHPExcel_Power_Best_Fit
- PHPExcel_Power_Best_Fit
Code
public function getEquation($dp = 0) {
$slope = $this
->getSlope($dp);
$intersect = $this
->getIntersect($dp);
return 'Y = ' . $intersect . ' * X^' . $slope;
}