You are here

public function PHPExcel_Logarithmic_Best_Fit::getValueOfYForX in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/logarithmicBestFitClass.php \PHPExcel_Logarithmic_Best_Fit::getValueOfYForX()

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

Parameters

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

Overrides PHPExcel_Best_Fit::getValueOfYForX

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/logarithmicBestFitClass.php, line 56

Class

PHPExcel_Logarithmic_Best_Fit
PHPExcel_Logarithmic_Best_Fit

Code

public function getValueOfYForX($xValue) {
  return $this
    ->getIntersect() + $this
    ->getSlope() * log($xValue - $this->_Xoffset);
}