public function PHPExcel_Linear_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/linearBestFitClass.php \PHPExcel_Linear_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/ linearBestFitClass.php, line 67
Class
- PHPExcel_Linear_Best_Fit
- PHPExcel_Linear_Best_Fit
Code
public function getValueOfXForY($yValue) {
return ($yValue - $this
->getIntersect()) / $this
->getSlope();
}