You are here

public static function PHPExcel_Calculation_Statistical::FISHER in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Statistical.php \PHPExcel_Calculation_Statistical::FISHER()

* FISHER * * Returns the Fisher transformation at x. This transformation produces a function that * is normally distributed rather than skewed. Use this function to perform hypothesis * testing on the correlation coefficient. * *

Parameters

float $value: * @return float

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Statistical.php, line 1513

Class

PHPExcel_Calculation_Statistical
PHPExcel_Calculation_Statistical

Code

public static function FISHER($value) {
  $value = PHPExcel_Calculation_Functions::flattenSingleValue($value);
  if (is_numeric($value)) {
    if ($value <= -1 || $value >= 1) {
      return PHPExcel_Calculation_Functions::NaN();
    }
    return 0.5 * log((1 + $value) / (1 - $value));
  }
  return PHPExcel_Calculation_Functions::VALUE();
}