public function PHPExcel_Power_Best_Fit::getValueOfXForY in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php \PHPExcel_Power_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/ powerBestFitClass.php, line 67
Class
- PHPExcel_Power_Best_Fit
- PHPExcel_Power_Best_Fit
Code
public function getValueOfXForY($yValue) {
return pow(($yValue + $this->_Yoffset) / $this
->getIntersect(), 1 / $this
->getSlope());
}