You are here

public function PHPExcel_Exponential_Best_Fit::getEquation in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/exponentialBestFitClass.php \PHPExcel_Exponential_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/exponentialBestFitClass.php, line 78

Class

PHPExcel_Exponential_Best_Fit
PHPExcel_Exponential_Best_Fit

Code

public function getEquation($dp = 0) {
  $slope = $this
    ->getSlope($dp);
  $intersect = $this
    ->getIntersect($dp);
  return 'Y = ' . $intersect . ' * ' . $slope . '^X';
}