You are here

public function PHPExcel_Exponential_Best_Fit::getValueOfXForY 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::getValueOfXForY()

* Return the X-Value for a specified value of Y * *

Parameters

float $yValue Y-Value: * @return float X-Value *

Overrides PHPExcel_Best_Fit::getValueOfXForY

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/exponentialBestFitClass.php, line 67

Class

PHPExcel_Exponential_Best_Fit
PHPExcel_Exponential_Best_Fit

Code

public function getValueOfXForY($yValue) {
  return log(($yValue + $this->_Yoffset) / $this
    ->getIntersect()) / log($this
    ->getSlope());
}