public function PHPExcel_Exponential_Best_Fit::getSlope in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/exponentialBestFitClass.php \PHPExcel_Exponential_Best_Fit::getSlope()
* Return the Slope of the line * *
Parameters
int $dp Number of places of decimal precision to display: * @return string *
Overrides PHPExcel_Best_Fit::getSlope
3 calls to PHPExcel_Exponential_Best_Fit::getSlope()
- PHPExcel_Exponential_Best_Fit::getEquation in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ trend/ exponentialBestFitClass.php - * Return the Equation of the best-fit line * *
- PHPExcel_Exponential_Best_Fit::getValueOfXForY in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ trend/ exponentialBestFitClass.php - * Return the X-Value for a specified value of Y * *
- PHPExcel_Exponential_Best_Fit::getValueOfYForX in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ trend/ exponentialBestFitClass.php - * Return the Y-Value for a specified value of X * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ trend/ exponentialBestFitClass.php, line 92
Class
- PHPExcel_Exponential_Best_Fit
- PHPExcel_Exponential_Best_Fit
Code
public function getSlope($dp = 0) {
if ($dp != 0) {
return round(exp($this->_slope), $dp);
}
return exp($this->_slope);
}