You are here

public function PHPExcel_Exponential_Best_Fit::getValueOfYForX in Loft Data Grids 6.2

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

Class

PHPExcel_Exponential_Best_Fit
PHPExcel_Exponential_Best_Fit

Code

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