You are here

public function PHPExcel_Polynomial_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/polynomialBestFitClass.php \PHPExcel_Polynomial_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/polynomialBestFitClass.php, line 93

Class

PHPExcel_Polynomial_Best_Fit
PHPExcel_Polynomial_Best_Fit

Code

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