You are here

public function PHPExcel_Best_Fit::getGoodnessOfFit in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/bestFitClass.php \PHPExcel_Best_Fit::getGoodnessOfFit()

* Return the goodness of fit for this regression * *

Parameters

int $dp Number of places of decimal precision to return: * @return float

1 call to PHPExcel_Best_Fit::getGoodnessOfFit()
PHPExcel_Polynomial_Best_Fit::__construct in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/polynomialBestFitClass.php
* Define the regression and calculate the goodness of fit for a set of X and Y data values * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/bestFitClass.php, line 231

Class

PHPExcel_Best_Fit
PHPExcel_Best_Fit

Code

public function getGoodnessOfFit($dp = 0) {
  if ($dp != 0) {
    return round($this->_goodnessOfFit, $dp);
  }
  return $this->_goodnessOfFit;
}