You are here

public function PHPExcel_Power_Best_Fit::getIntersect in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php \PHPExcel_Power_Best_Fit::getIntersect()

* Return the Value of X where it intersects Y = 0 * *

Parameters

int $dp Number of places of decimal precision to display: * @return string *

Overrides PHPExcel_Best_Fit::getIntersect

3 calls to PHPExcel_Power_Best_Fit::getIntersect()
PHPExcel_Power_Best_Fit::getEquation in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php
* Return the Equation of the best-fit line * *
PHPExcel_Power_Best_Fit::getValueOfXForY in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php
* Return the X-Value for a specified value of Y * *
PHPExcel_Power_Best_Fit::getValueOfYForX in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php
* Return the Y-Value for a specified value of X * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php, line 92

Class

PHPExcel_Power_Best_Fit
PHPExcel_Power_Best_Fit

Code

public function getIntersect($dp = 0) {
  if ($dp != 0) {
    return round(exp($this->_intersect), $dp);
  }
  return exp($this->_intersect);
}