ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Calculation\Statistical Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Calculation\Statistical:

Static Public Member Functions

static AVEDEV (... $args)
 AVEDEV. More...
 
static AVERAGE (... $args)
 AVERAGE. More...
 
static AVERAGEA (... $args)
 AVERAGEA. More...
 
static AVERAGEIF ($range, $condition, $averageRange=[])
 AVERAGEIF. More...
 
static BETADIST ($value, $alpha, $beta, $rMin=0, $rMax=1)
 BETADIST. More...
 
static BETAINV ($probability, $alpha, $beta, $rMin=0, $rMax=1)
 BETAINV. More...
 
static BINOMDIST ($value, $trials, $probability, $cumulative)
 BINOMDIST. More...
 
static CHIDIST ($value, $degrees)
 CHIDIST. More...
 
static CHIINV ($probability, $degrees)
 CHIINV. More...
 
static CONFIDENCE ($alpha, $stdDev, $size)
 CONFIDENCE. More...
 
static CORREL ($yValues, $xValues=null)
 CORREL. More...
 
static COUNT (... $args)
 COUNT. More...
 
static COUNTA (... $args)
 COUNTA. More...
 
static COUNTBLANK (... $args)
 COUNTBLANK. More...
 
static COUNTIF ($range, $condition)
 COUNTIF. More...
 
static COUNTIFS (... $args)
 COUNTIFS. More...
 
static COVAR ($yValues, $xValues)
 COVAR. More...
 
static CRITBINOM ($trials, $probability, $alpha)
 CRITBINOM. More...
 
static DEVSQ (... $args)
 DEVSQ. More...
 
static EXPONDIST ($value, $lambda, $cumulative)
 EXPONDIST. More...
 
static FDIST2 ($value, $u, $v, $cumulative)
 F.DIST. More...
 
static FISHER ($value)
 FISHER. More...
 
static FISHERINV ($value)
 FISHERINV. More...
 
static FORECAST ($xValue, $yValues, $xValues)
 FORECAST. More...
 
static GAMMAFunction ($value)
 GAMMA. More...
 
static GAMMADIST ($value, $a, $b, $cumulative)
 GAMMADIST. More...
 
static GAMMAINV ($probability, $alpha, $beta)
 GAMMAINV. More...
 
static GAMMALN ($value)
 GAMMALN. More...
 
static GAUSS ($value)
 GAUSS. More...
 
static GEOMEAN (... $args)
 GEOMEAN. More...
 
static GROWTH ($yValues, $xValues=[], $newValues=[], $const =true)
 GROWTH. More...
 
static HARMEAN (... $args)
 HARMEAN. More...
 
static HYPGEOMDIST ($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber)
 HYPGEOMDIST. More...
 
static INTERCEPT ($yValues, $xValues)
 INTERCEPT. More...
 
static KURT (... $args)
 KURT. More...
 
static LARGE (... $args)
 LARGE. More...
 
static LINEST ($yValues, $xValues=null, $const =true, $stats=false)
 LINEST. More...
 
static LOGEST ($yValues, $xValues=null, $const =true, $stats=false)
 LOGEST. More...
 
static LOGINV ($probability, $mean, $stdDev)
 LOGINV. More...
 
static LOGNORMDIST ($value, $mean, $stdDev)
 LOGNORMDIST. More...
 
static LOGNORMDIST2 ($value, $mean, $stdDev, $cumulative=false)
 LOGNORM.DIST. More...
 
static MAX (... $args)
 MAX. More...
 
static MAXA (... $args)
 MAXA. More...
 
static MAXIFS (... $args)
 MAXIFS. More...
 
static MEDIAN (... $args)
 MEDIAN. More...
 
static MIN (... $args)
 MIN. More...
 
static MINA (... $args)
 MINA. More...
 
static MINIFS (... $args)
 MINIFS. More...
 
static MODE (... $args)
 MODE. More...
 
static NEGBINOMDIST ($failures, $successes, $probability)
 NEGBINOMDIST. More...
 
static NORMDIST ($value, $mean, $stdDev, $cumulative)
 NORMDIST. More...
 
static NORMINV ($probability, $mean, $stdDev)
 NORMINV. More...
 
static NORMSDIST ($value)
 NORMSDIST. More...
 
static NORMSDIST2 ($value, $cumulative)
 NORM.S.DIST. More...
 
static NORMSINV ($value)
 NORMSINV. More...
 
static PERCENTILE (... $args)
 PERCENTILE. More...
 
static PERCENTRANK ($valueSet, $value, $significance=3)
 PERCENTRANK. More...
 
static PERMUT ($numObjs, $numInSet)
 PERMUT. More...
 
static POISSON ($value, $mean, $cumulative)
 POISSON. More...
 
static QUARTILE (... $args)
 QUARTILE. More...
 
static RANK ($value, $valueSet, $order=0)
 RANK. More...
 
static RSQ ($yValues, $xValues)
 RSQ. More...
 
static SKEW (... $args)
 SKEW. More...
 
static SLOPE ($yValues, $xValues)
 SLOPE. More...
 
static SMALL (... $args)
 SMALL. More...
 
static STANDARDIZE ($value, $mean, $stdDev)
 STANDARDIZE. More...
 
static STDEV (... $args)
 STDEV. More...
 
static STDEVA (... $args)
 STDEVA. More...
 
static STDEVP (... $args)
 STDEVP. More...
 
static STDEVPA (... $args)
 STDEVPA. More...
 
static STEYX ($yValues, $xValues)
 STEYX. More...
 
static TDIST ($value, $degrees, $tails)
 TDIST. More...
 
static TINV ($probability, $degrees)
 TINV. More...
 
static TREND ($yValues, $xValues=[], $newValues=[], $const =true)
 TREND. More...
 
static TRIMMEAN (... $args)
 TRIMMEAN. More...
 
static VARFunc (... $args)
 VARFunc. More...
 
static VARA (... $args)
 VARA. More...
 
static VARP (... $args)
 VARP. More...
 
static VARPA (... $args)
 VARPA. More...
 
static WEIBULL ($value, $alpha, $beta, $cumulative)
 WEIBULL. More...
 
static ZTEST ($dataSet, $m0, $sigma=null)
 ZTEST. More...
 

Data Fields

const LOG_GAMMA_X_MAX_VALUE = 2.55e305
 
const EPS = 2.22e-16
 
const MAX_VALUE = 1.2e308
 
const SQRT2PI = 2.5066282746310005024157652848110452530069867406099
 

Detailed Description

Deprecated:
1.18.0

Definition at line 19 of file Statistical.php.

Member Function Documentation

◆ AVEDEV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::AVEDEV (   $args)
static

AVEDEV.

Returns the average of the absolute deviations of data points from their mean. AVEDEV is a measure of the variability in a data set.

Excel Function: AVEDEV(value1[,value2[, ...]])

1.17.0

See also
Statistical::averageDeviations() Use the averageDeviations() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string

Definition at line 44 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Averages\averageDeviations().

45  {
46  return Averages::averageDeviations(...$args);
47  }
+ Here is the call graph for this function:

◆ AVERAGE()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::AVERAGE (   $args)
static

AVERAGE.

Returns the average (arithmetic mean) of the arguments

Excel Function: AVERAGE(value1[,value2[, ...]])

1.17.0

See also
Statistical::average() Use the average() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string

Definition at line 66 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Averages\average().

67  {
68  return Averages::average(...$args);
69  }
+ Here is the call graph for this function:

◆ AVERAGEA()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::AVERAGEA (   $args)
static

AVERAGEA.

Returns the average of its arguments, including numbers, text, and logical values

Excel Function: AVERAGEA(value1[,value2[, ...]])

1.17.0

See also
Statistical::averageA() Use the averageA() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string

Definition at line 88 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Averages\averageA().

89  {
90  return Averages::averageA(...$args);
91  }
+ Here is the call graph for this function:

◆ AVERAGEIF()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::AVERAGEIF (   $range,
  $condition,
  $averageRange = [] 
)
static

AVERAGEIF.

Returns the average value from a range of cells that contain numbers within the list of arguments

Excel Function: AVERAGEIF(value1[,value2[, ...]],condition)

1.17.0

See also
Statistical::AVERAGEIF() Use the AVERAGEIF() method in the Statistical class instead
Parameters
mixed$rangeData values
string$conditionthe criteria that defines which cells will be checked
mixed[]$averageRange Data values
Returns
null|float|string

Definition at line 112 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Conditional\AVERAGEIF().

113  {
114  return Conditional::AVERAGEIF($range, $condition, $averageRange);
115  }
static AVERAGEIF($range, $condition, $averageRange=[])
AVERAGEIF.
Definition: Conditional.php:32
+ Here is the call graph for this function:

◆ BETADIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::BETADIST (   $value,
  $alpha,
  $beta,
  $rMin = 0,
  $rMax = 1 
)
static

BETADIST.

Returns the beta distribution.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
float$valueValue at which you want to evaluate the distribution
float$alphaParameter to the distribution
float$betaParameter to the distribution
mixed$rMin
mixed$rMax
Returns
float|string

Definition at line 135 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Beta\distribution().

136  {
137  return Statistical\Distributions\Beta::distribution($value, $alpha, $beta, $rMin, $rMax);
138  }
static distribution($value, $alpha, $beta, $rMin=0.0, $rMax=1.0)
BETADIST.
Definition: Beta.php:29
+ Here is the call graph for this function:

◆ BETAINV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::BETAINV (   $probability,
  $alpha,
  $beta,
  $rMin = 0,
  $rMax = 1 
)
static

BETAINV.

Returns the inverse of the Beta distribution.

1.18.0

See also
Statistical::inverse() Use the inverse() method in the Statistical class instead
Parameters
float$probabilityProbability at which you want to evaluate the distribution
float$alphaParameter to the distribution
float$betaParameter to the distribution
float$rMinMinimum value
float$rMaxMaximum value
Returns
float|string

Definition at line 158 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Beta\inverse().

159  {
160  return Statistical\Distributions\Beta::inverse($probability, $alpha, $beta, $rMin, $rMax);
161  }
static inverse($probability, $alpha, $beta, $rMin=0.0, $rMax=1.0)
BETAINV.
Definition: Beta.php:75
+ Here is the call graph for this function:

◆ BINOMDIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::BINOMDIST (   $value,
  $trials,
  $probability,
  $cumulative 
)
static

BINOMDIST.

Returns the individual term binomial distribution probability. Use BINOMDIST in problems with a fixed number of tests or trials, when the outcomes of any trial are only success or failure, when trials are independent, and when the probability of success is constant throughout the experiment. For example, BINOMDIST can calculate the probability that two of the next three babies born are male.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
mixed$valueNumber of successes in trials
mixed$trialsNumber of trials
mixed$probabilityProbability of success on each trial
mixed$cumulative
Returns
float|string

Definition at line 184 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Binomial\distribution().

185  {
186  return Statistical\Distributions\Binomial::distribution($value, $trials, $probability, $cumulative);
187  }
static distribution($value, $trials, $probability, $cumulative)
BINOMDIST.
Definition: Binomial.php:27
+ Here is the call graph for this function:

◆ CHIDIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::CHIDIST (   $value,
  $degrees 
)
static

CHIDIST.

Returns the one-tailed probability of the chi-squared distribution.

1.18.0

See also
Statistical::distributionRightTail() Use the distributionRightTail() method in the Statistical class instead
Parameters
float$valueValue for the function
float$degreesdegrees of freedom
Returns
float|string

Definition at line 204 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\ChiSquared\distributionRightTail().

205  {
207  }
+ Here is the call graph for this function:

◆ CHIINV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::CHIINV (   $probability,
  $degrees 
)
static

CHIINV.

Returns the one-tailed probability of the chi-squared distribution.

1.18.0

See also
Statistical::inverseRightTail() Use the inverseRightTail() method in the Statistical class instead
Parameters
float$probabilityProbability for the function
float$degreesdegrees of freedom
Returns
float|string

Definition at line 224 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\ChiSquared\inverseRightTail().

225  {
226  return Statistical\Distributions\ChiSquared::inverseRightTail($probability, $degrees);
227  }
+ Here is the call graph for this function:

◆ CONFIDENCE()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::CONFIDENCE (   $alpha,
  $stdDev,
  $size 
)
static

CONFIDENCE.

Returns the confidence interval for a population mean

1.18.0

See also
Statistical::CONFIDENCE() Use the CONFIDENCE() method in the Statistical class instead
Parameters
float$alpha
float$stdDevStandard Deviation
float$size
Returns
float|string

Definition at line 245 of file Statistical.php.

References $size, and PhpOffice\PhpSpreadsheet\Calculation\Statistical\Confidence\CONFIDENCE().

246  {
247  return Confidence::CONFIDENCE($alpha, $stdDev, $size);
248  }
$size
Definition: RandomTest.php:84
static CONFIDENCE($alpha, $stdDev, $size)
CONFIDENCE.
Definition: Confidence.php:21
+ Here is the call graph for this function:

◆ CORREL()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::CORREL (   $yValues,
  $xValues = null 
)
static

CORREL.

Returns covariance, the average of the products of deviations for each data point pair.

1.18.0

See also
Statistical::CORREL() Use the CORREL() method in the Statistical class instead
Parameters
mixed$yValuesarray of mixed Data Series Y
null | mixed$xValuesarray of mixed Data Series X
Returns
float|string

Definition at line 265 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\CORREL().

266  {
267  return Trends::CORREL($xValues, $yValues);
268  }
static CORREL($yValues, $xValues=null)
CORREL.
Definition: Trends.php:62
+ Here is the call graph for this function:

◆ COUNT()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::COUNT (   $args)
static

COUNT.

Counts the number of cells that contain numbers within the list of arguments

Excel Function: COUNT(value1[,value2[, ...]])

1.17.0

See also
Statistical::COUNT() Use the COUNT() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
int

Definition at line 287 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Counts\COUNT().

288  {
289  return Counts::COUNT(...$args);
290  }
+ Here is the call graph for this function:

◆ COUNTA()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::COUNTA (   $args)
static

COUNTA.

Counts the number of cells that are not empty within the list of arguments

Excel Function: COUNTA(value1[,value2[, ...]])

1.17.0

See also
Statistical::COUNTA() Use the COUNTA() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
int

Definition at line 309 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Counts\COUNTA().

310  {
311  return Counts::COUNTA(...$args);
312  }
+ Here is the call graph for this function:

◆ COUNTBLANK()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::COUNTBLANK (   $args)
static

COUNTBLANK.

Counts the number of empty cells within the list of arguments

Excel Function: COUNTBLANK(value1[,value2[, ...]])

1.17.0

See also
Statistical::COUNTBLANK() Use the COUNTBLANK() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
int

Definition at line 331 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Counts\COUNTBLANK().

332  {
333  return Counts::COUNTBLANK(...$args);
334  }
+ Here is the call graph for this function:

◆ COUNTIF()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::COUNTIF (   $range,
  $condition 
)
static

COUNTIF.

Counts the number of cells that contain numbers within the list of arguments

Excel Function: COUNTIF(range,condition)

1.17.0

See also
Statistical::COUNTIF() Use the COUNTIF() method in the Statistical class instead
Parameters
mixed$rangeData values
string$conditionthe criteria that defines which cells will be counted
Returns
int

Definition at line 354 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Conditional\COUNTIF().

355  {
356  return Conditional::COUNTIF($range, $condition);
357  }
+ Here is the call graph for this function:

◆ COUNTIFS()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::COUNTIFS (   $args)
static

COUNTIFS.

Counts the number of cells that contain numbers within the list of arguments

Excel Function: COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)

1.17.0

See also
Statistical::COUNTIFS() Use the COUNTIFS() method in the Statistical class instead
Parameters
mixed$argsPairs of Ranges and Criteria
Returns
int

Definition at line 376 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Conditional\COUNTIFS().

377  {
378  return Conditional::COUNTIFS(...$args);
379  }
+ Here is the call graph for this function:

◆ COVAR()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::COVAR (   $yValues,
  $xValues 
)
static

COVAR.

Returns covariance, the average of the products of deviations for each data point pair.

1.18.0

See also
Statistical::COVAR() Use the COVAR() method in the Statistical class instead
Parameters
mixed$yValuesarray of mixed Data Series Y
mixed$xValuesarray of mixed Data Series X
Returns
float|string

Definition at line 396 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\COVAR().

397  {
398  return Trends::COVAR($yValues, $xValues);
399  }
static COVAR($yValues, $xValues)
COVAR.
Definition: Trends.php:90
+ Here is the call graph for this function:

◆ CRITBINOM()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::CRITBINOM (   $trials,
  $probability,
  $alpha 
)
static

CRITBINOM.

Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value

See https://support.microsoft.com/en-us/help/828117/ for details of the algorithm used

1.18.0

See also
Statistical::inverse() Use the inverse() method in the Statistical class instead
Parameters
float$trialsnumber of Bernoulli trials
float$probabilityprobability of a success on each trial
float$alphacriterion value
Returns
int|string

Definition at line 420 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Binomial\inverse().

421  {
422  return Statistical\Distributions\Binomial::inverse($trials, $probability, $alpha);
423  }
static inverse($trials, $probability, $alpha)
CRITBINOM.
Definition: Binomial.php:157
+ Here is the call graph for this function:

◆ DEVSQ()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::DEVSQ (   $args)
static

DEVSQ.

Returns the sum of squares of deviations of data points from their sample mean.

Excel Function: DEVSQ(value1[,value2[, ...]])

1.18.0

See also
Statistical::sumSquares() Use the sumSquares() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string

Definition at line 442 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Deviations\sumSquares().

443  {
444  return Statistical\Deviations::sumSquares(...$args);
445  }
+ Here is the call graph for this function:

◆ EXPONDIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::EXPONDIST (   $value,
  $lambda,
  $cumulative 
)
static

EXPONDIST.

Returns the exponential distribution. Use EXPONDIST to model the time between events, such as how long an automated bank teller takes to deliver cash. For example, you can use EXPONDIST to determine the probability that the process takes at most 1 minute.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
float$valueValue of the function
float$lambdaThe parameter value
bool$cumulative
Returns
float|string

Definition at line 465 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Exponential\distribution().

466  {
467  return Statistical\Distributions\Exponential::distribution($value, $lambda, $cumulative);
468  }
static distribution($value, $lambda, $cumulative)
EXPONDIST.
Definition: Exponential.php:23
+ Here is the call graph for this function:

◆ FDIST2()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::FDIST2 (   $value,
  $u,
  $v,
  $cumulative 
)
static

F.DIST.

Returns the F probability distribution. You can use this function to determine whether two data sets have different degrees of diversity. For example, you can examine the test scores of men and women entering high school, and determine if the variability in the females is different from that found in the males.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
float$valueValue of the function
int$uThe numerator degrees of freedom
int$vThe denominator degrees of freedom
bool$cumulativeIf cumulative is TRUE, F.DIST returns the cumulative distribution function; if FALSE, it returns the probability density function.
Returns
float|string

Definition at line 491 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\F\distribution().

492  {
493  return Statistical\Distributions\F::distribution($value, $u, $v, $cumulative);
494  }
static distribution($value, $u, $v, $cumulative)
F.DIST.
Definition: F.php:25
+ Here is the call graph for this function:

◆ FISHER()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::FISHER (   $value)
static

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.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
float$value
Returns
float|string

Definition at line 512 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Fisher\distribution().

+ Here is the call graph for this function:

◆ FISHERINV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::FISHERINV (   $value)
static

FISHERINV.

Returns the inverse of the Fisher transformation. Use this transformation when analyzing correlations between ranges or arrays of data. If y = FISHER(x), then FISHERINV(y) = x.

1.18.0

See also
Statistical::inverse() Use the inverse() method in the Statistical class instead
Parameters
float$value
Returns
float|string

Definition at line 533 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Fisher\inverse().

534  {
536  }
+ Here is the call graph for this function:

◆ FORECAST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::FORECAST (   $xValue,
  $yValues,
  $xValues 
)
static

FORECAST.

Calculates, or predicts, a future value by using existing values. The predicted value is a y-value for a given x-value.

1.18.0

See also
Statistical::FORECAST() Use the FORECAST() method in the Statistical class instead
Parameters
float$xValueValue of X for which we want to find Y
mixed$yValuesarray of mixed Data Series Y
mixed$xValuesof mixed Data Series X
Returns
bool|float|string

Definition at line 554 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\FORECAST().

555  {
556  return Trends::FORECAST($xValue, $yValues, $xValues);
557  }
static FORECAST($xValue, $yValues, $xValues)
FORECAST.
Definition: Trends.php:116
+ Here is the call graph for this function:

◆ GAMMADIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::GAMMADIST (   $value,
  $a,
  $b,
  $cumulative 
)
static

GAMMADIST.

Returns the gamma distribution.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
float$valueValue at which you want to evaluate the distribution
float$aParameter to the distribution
float$bParameter to the distribution
bool$cumulative
Returns
float|string

Definition at line 595 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Gamma\distribution().

596  {
597  return Statistical\Distributions\Gamma::distribution($value, $a, $b, $cumulative);
598  }
static distribution($value, $a, $b, $cumulative)
GAMMADIST.
Definition: Gamma.php:48
+ Here is the call graph for this function:

◆ GAMMAFunction()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::GAMMAFunction (   $value)
static

GAMMA.

Returns the gamma function value.

1.18.0

See also
Statistical::gamma() Use the gamma() method in the Statistical class instead
Parameters
float$value
Returns
float|string The result, or a string containing an error

Definition at line 573 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Gamma\gamma().

+ Here is the call graph for this function:

◆ GAMMAINV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::GAMMAINV (   $probability,
  $alpha,
  $beta 
)
static

GAMMAINV.

Returns the inverse of the Gamma distribution.

1.18.0

See also
Statistical::inverse() Use the inverse() method in the Statistical class instead
Parameters
float$probabilityProbability at which you want to evaluate the distribution
float$alphaParameter to the distribution
float$betaParameter to the distribution
Returns
float|string

Definition at line 616 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Gamma\inverse().

617  {
618  return Statistical\Distributions\Gamma::inverse($probability, $alpha, $beta);
619  }
static inverse($probability, $alpha, $beta)
GAMMAINV.
Definition: Gamma.php:81
+ Here is the call graph for this function:

◆ GAMMALN()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::GAMMALN (   $value)
static

GAMMALN.

Returns the natural logarithm of the gamma function.

1.18.0

See also
Statistical::ln() Use the ln() method in the Statistical class instead
Parameters
float$value
Returns
float|string

Definition at line 635 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Gamma\ln().

+ Here is the call graph for this function:

◆ GAUSS()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::GAUSS (   $value)
static

GAUSS.

Calculates the probability that a member of a standard normal population will fall between the mean and z standard deviations from the mean.

1.18.0

See also
Statistical::gauss() Use the gauss() method in the Statistical class instead
Parameters
float$value
Returns
float|string The result, or a string containing an error

Definition at line 655 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\StandardNormal\gauss().

+ Here is the call graph for this function:

◆ GEOMEAN()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::GEOMEAN (   $args)
static

GEOMEAN.

Returns the geometric mean of an array or range of positive data. For example, you can use GEOMEAN to calculate average growth rate given compound interest with variable rates.

Excel Function: GEOMEAN(value1[,value2[, ...]])

1.18.0

See also
Statistical::geometric() Use the geometric() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string

Definition at line 679 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Averages\Mean\geometric().

680  {
681  return Statistical\Averages\Mean::geometric(...$args);
682  }
+ Here is the call graph for this function:

◆ GROWTH()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::GROWTH (   $yValues,
  $xValues = [],
  $newValues = [],
  $const = true 
)
static

GROWTH.

Returns values along a predicted exponential Trend

1.18.0

See also
Statistical::GROWTH() Use the GROWTH() method in the Statistical class instead
Parameters
mixed[]$yValues Data Series Y
mixed[]$xValues Data Series X
mixed[]$newValues Values of X for which we want to find Y
bool$consta logical value specifying whether to force the intersect to equal 0
Returns
float[]

Definition at line 701 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\GROWTH().

702  {
703  return Trends::GROWTH($yValues, $xValues, $newValues, $const);
704  }
static GROWTH($yValues, $xValues=[], $newValues=[], $const =true)
GROWTH.
Definition: Trends.php:145
+ Here is the call graph for this function:

◆ HARMEAN()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::HARMEAN (   $args)
static

HARMEAN.

Returns the harmonic mean of a data set. The harmonic mean is the reciprocal of the arithmetic mean of reciprocals.

Excel Function: HARMEAN(value1[,value2[, ...]])

1.18.0

See also
Statistical::harmonic() Use the harmonic() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string

Definition at line 724 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Averages\Mean\harmonic().

725  {
726  return Statistical\Averages\Mean::harmonic(...$args);
727  }
+ Here is the call graph for this function:

◆ HYPGEOMDIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::HYPGEOMDIST (   $sampleSuccesses,
  $sampleNumber,
  $populationSuccesses,
  $populationNumber 
)
static

HYPGEOMDIST.

Returns the hypergeometric distribution. HYPGEOMDIST returns the probability of a given number of sample successes, given the sample size, population successes, and population size.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
mixed$sampleSuccessesNumber of successes in the sample
mixed$sampleNumberSize of the sample
mixed$populationSuccessesNumber of successes in the population
mixed$populationNumberPopulation size
Returns
float|string

Definition at line 747 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\HyperGeometric\distribution().

748  {
750  $sampleSuccesses,
751  $sampleNumber,
752  $populationSuccesses,
753  $populationNumber
754  );
755  }
static distribution($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber)
HYPGEOMDIST.
+ Here is the call graph for this function:

◆ INTERCEPT()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::INTERCEPT (   $yValues,
  $xValues 
)
static

INTERCEPT.

Calculates the point at which a line will intersect the y-axis by using existing x-values and y-values.

1.18.0

See also
Statistical::INTERCEPT() Use the INTERCEPT() method in the Statistical class instead
Parameters
mixed[]$yValues Data Series Y
mixed[]$xValues Data Series X
Returns
float|string

Definition at line 772 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\INTERCEPT().

773  {
774  return Trends::INTERCEPT($yValues, $xValues);
775  }
static INTERCEPT($yValues, $xValues)
INTERCEPT.
Definition: Trends.php:175
+ Here is the call graph for this function:

◆ KURT()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::KURT (   $args)
static

KURT.

Returns the kurtosis of a data set. Kurtosis characterizes the relative peakedness or flatness of a distribution compared with the normal distribution. Positive kurtosis indicates a relatively peaked distribution. Negative kurtosis indicates a relatively flat distribution.

1.18.0

See also
Statistical::kurtosis() Use the kurtosis() method in the Statistical class instead
Parameters
array...$args Data Series
Returns
float|string

Definition at line 794 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Deviations\kurtosis().

795  {
796  return Statistical\Deviations::kurtosis(...$args);
797  }
+ Here is the call graph for this function:

◆ LARGE()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::LARGE (   $args)
static

LARGE.

Returns the nth largest value in a data set. You can use this function to select a value based on its relative standing.

Excel Function: LARGE(value1[,value2[, ...]],entry)

1.18.0

See also
Statistical::large() Use the large() method in the Statistical class instead
Parameters
mixed$argsData values
Returns
float|string The result, or a string containing an error

Definition at line 817 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Size\large().

818  {
819  return Statistical\Size::large(...$args);
820  }
+ Here is the call graph for this function:

◆ LINEST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::LINEST (   $yValues,
  $xValues = null,
  $const = true,
  $stats = false 
)
static

LINEST.

Calculates the statistics for a line by using the "least squares" method to calculate a straight line that best fits your data, and then returns an array that describes the line.

1.18.0

See also
Statistical::LINEST() Use the LINEST() method in the Statistical class instead
Parameters
mixed[]$yValues Data Series Y
null|mixed[]$xValues Data Series X
bool$consta logical value specifying whether to force the intersect to equal 0
bool$statsa logical value specifying whether to return additional regression statistics
Returns
array|int|string The result, or a string containing an error

Definition at line 840 of file Statistical.php.

References Sabre\VObject\$stats, and PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\LINEST().

841  {
842  return Trends::LINEST($yValues, $xValues, $const, $stats);
843  }
static LINEST($yValues, $xValues=null, $const =true, $stats=false)
LINEST.
Definition: Trends.php:202
+ Here is the call graph for this function:

◆ LOGEST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::LOGEST (   $yValues,
  $xValues = null,
  $const = true,
  $stats = false 
)
static

LOGEST.

Calculates an exponential curve that best fits the X and Y data series, and then returns an array that describes the line.

1.18.0

See also
Statistical::LOGEST() Use the LOGEST() method in the Statistical class instead
Parameters
mixed[]$yValues Data Series Y
null|mixed[]$xValues Data Series X
bool$consta logical value specifying whether to force the intersect to equal 0
bool$statsa logical value specifying whether to return additional regression statistics
Returns
array|int|string The result, or a string containing an error

Definition at line 863 of file Statistical.php.

References Sabre\VObject\$stats, and PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\LOGEST().

864  {
865  return Trends::LOGEST($yValues, $xValues, $const, $stats);
866  }
static LOGEST($yValues, $xValues=null, $const =true, $stats=false)
LOGEST.
Definition: Trends.php:263
+ Here is the call graph for this function:

◆ LOGINV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::LOGINV (   $probability,
  $mean,
  $stdDev 
)
static

LOGINV.

Returns the inverse of the normal cumulative distribution

1.18.0

See also
Statistical::inverse() Use the inverse() method in the Statistical class instead
Parameters
float$probability
float$mean
float$stdDev
Returns
float|string The result, or a string containing an error

Try implementing P J Acklam's refinement algorithm for greater accuracy if I can get my head round the mathematics (as described at) http://home.online.no/~pjacklam/notes/invnorm/

Definition at line 888 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\LogNormal\inverse().

889  {
890  return Statistical\Distributions\LogNormal::inverse($probability, $mean, $stdDev);
891  }
static inverse($probability, $mean, $stdDev)
LOGINV.
Definition: LogNormal.php:99
+ Here is the call graph for this function:

◆ LOGNORMDIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::LOGNORMDIST (   $value,
  $mean,
  $stdDev 
)
static

LOGNORMDIST.

Returns the cumulative lognormal distribution of x, where ln(x) is normally distributed with parameters mean and standard_dev.

1.18.0

See also
Statistical::cumulative() Use the cumulative() method in the Statistical class instead
Parameters
float$value
float$mean
float$stdDev
Returns
float|string The result, or a string containing an error

Definition at line 910 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\LogNormal\cumulative().

911  {
912  return Statistical\Distributions\LogNormal::cumulative($value, $mean, $stdDev);
913  }
static cumulative($value, $mean, $stdDev)
LOGNORMDIST.
Definition: LogNormal.php:22
+ Here is the call graph for this function:

◆ LOGNORMDIST2()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::LOGNORMDIST2 (   $value,
  $mean,
  $stdDev,
  $cumulative = false 
)
static

LOGNORM.DIST.

Returns the lognormal distribution of x, where ln(x) is normally distributed with parameters mean and standard_dev.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
float$value
float$mean
float$stdDev
bool$cumulative
Returns
float|string The result, or a string containing an error

Definition at line 933 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\LogNormal\distribution().

934  {
935  return Statistical\Distributions\LogNormal::distribution($value, $mean, $stdDev, $cumulative);
936  }
static distribution($value, $mean, $stdDev, $cumulative=false)
LOGNORM.DIST.
Definition: LogNormal.php:56
+ Here is the call graph for this function:

◆ MAX()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::MAX (   $args)
static

MAX.

MAX returns the value of the element of the values passed that has the highest value, with negative numbers considered smaller than positive numbers.

Excel Function: max(value1[,value2[, ...]])

1.17.0

Parameters
mixed...$args Data values
Returns
float
See also
Statistical::max() Use the MAX() method in the Statistical class instead

Definition at line 956 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Maximum\max().

957  {
958  return Maximum::max(...$args);
959  }
+ Here is the call graph for this function:

◆ MAXA()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::MAXA (   $args)
static

MAXA.

Returns the greatest value in a list of arguments, including numbers, text, and logical values

Excel Function: maxA(value1[,value2[, ...]])

1.17.0

Parameters
mixed...$args Data values
Returns
float
See also
Statistical::maxA() Use the MAXA() method in the Statistical class instead

Definition at line 978 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Maximum\maxA().

979  {
980  return Maximum::maxA(...$args);
981  }
+ Here is the call graph for this function:

◆ MAXIFS()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::MAXIFS (   $args)
static

MAXIFS.

Counts the maximum value within a range of cells that contain numbers within the list of arguments

Excel Function: MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

1.17.0

See also
Statistical::MAXIFS() Use the MAXIFS() method in the Statistical class instead
Parameters
mixed$argsData range and criterias
Returns
float

Definition at line 1000 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Conditional\MAXIFS().

1001  {
1002  return Conditional::MAXIFS(...$args);
1003  }
+ Here is the call graph for this function:

◆ MEDIAN()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::MEDIAN (   $args)
static

MEDIAN.

Returns the median of the given numbers. The median is the number in the middle of a set of numbers.

Excel Function: MEDIAN(value1[,value2[, ...]])

1.18.0

See also
Statistical::median() Use the median() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string The result, or a string containing an error

Definition at line 1022 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Averages\median().

1023  {
1024  return Statistical\Averages::median(...$args);
1025  }
+ Here is the call graph for this function:

◆ MIN()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::MIN (   $args)
static

MIN.

MIN returns the value of the element of the values passed that has the smallest value, with negative numbers considered smaller than positive numbers.

Excel Function: MIN(value1[,value2[, ...]])

1.17.0

Parameters
mixed...$args Data values
Returns
float
See also
Statistical::min() Use the min() method in the Statistical class instead

Definition at line 1045 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Minimum\min().

1046  {
1047  return Minimum::min(...$args);
1048  }
+ Here is the call graph for this function:

◆ MINA()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::MINA (   $args)
static

MINA.

Returns the smallest value in a list of arguments, including numbers, text, and logical values

Excel Function: MINA(value1[,value2[, ...]])

1.17.0

Parameters
mixed...$args Data values
Returns
float
See also
Statistical::minA() Use the minA() method in the Statistical class instead

Definition at line 1067 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Minimum\minA().

1068  {
1069  return Minimum::minA(...$args);
1070  }
+ Here is the call graph for this function:

◆ MINIFS()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::MINIFS (   $args)
static

MINIFS.

Returns the minimum value within a range of cells that contain numbers within the list of arguments

Excel Function: MINIFS(min_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

1.17.0

See also
Statistical::MINIFS() Use the MINIFS() method in the Statistical class instead
Parameters
mixed$argsData range and criterias
Returns
float

Definition at line 1089 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Conditional\MINIFS().

1090  {
1091  return Conditional::MINIFS(...$args);
1092  }
+ Here is the call graph for this function:

◆ MODE()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::MODE (   $args)
static

MODE.

Returns the most frequently occurring, or repetitive, value in an array or range of data

Excel Function: MODE(value1[,value2[, ...]])

1.18.0

See also
Statistical::mode() Use the mode() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string The result, or a string containing an error

Definition at line 1111 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Averages\mode().

1112  {
1113  return Statistical\Averages::mode(...$args);
1114  }
+ Here is the call graph for this function:

◆ NEGBINOMDIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::NEGBINOMDIST (   $failures,
  $successes,
  $probability 
)
static

NEGBINOMDIST.

Returns the negative binomial distribution. NEGBINOMDIST returns the probability that there will be number_f failures before the number_s-th success, when the constant probability of a success is probability_s. This function is similar to the binomial distribution, except that the number of successes is fixed, and the number of trials is variable. Like the binomial, trials are assumed to be independent.

1.18.0

See also
Statistical::negative() Use the negative() method in the Statistical class instead
Parameters
mixed$failuresNumber of Failures
mixed$successesThreshold number of Successes
mixed$probabilityProbability of success on each trial
Returns
float|string The result, or a string containing an error

Definition at line 1136 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Binomial\negative().

1137  {
1138  return Statistical\Distributions\Binomial::negative($failures, $successes, $probability);
1139  }
static negative($failures, $successes, $probability)
NEGBINOMDIST.
Definition: Binomial.php:118
+ Here is the call graph for this function:

◆ NORMDIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::NORMDIST (   $value,
  $mean,
  $stdDev,
  $cumulative 
)
static

NORMDIST.

Returns the normal distribution for the specified mean and standard deviation. This function has a very wide range of applications in statistics, including hypothesis testing.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
mixed$value
mixed$meanMean Value
mixed$stdDevStandard Deviation
mixed$cumulative
Returns
float|string The result, or a string containing an error

Definition at line 1160 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Normal\distribution().

1161  {
1162  return Statistical\Distributions\Normal::distribution($value, $mean, $stdDev, $cumulative);
1163  }
static distribution($value, $mean, $stdDev, $cumulative)
NORMDIST.
Definition: Normal.php:27
+ Here is the call graph for this function:

◆ NORMINV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::NORMINV (   $probability,
  $mean,
  $stdDev 
)
static

NORMINV.

Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation.

1.18.0

See also
Statistical::inverse() Use the inverse() method in the Statistical class instead
Parameters
mixed$probability
mixed$meanMean Value
mixed$stdDevStandard Deviation
Returns
float|string The result, or a string containing an error

Definition at line 1181 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Normal\inverse().

1182  {
1183  return Statistical\Distributions\Normal::inverse($probability, $mean, $stdDev);
1184  }
static inverse($probability, $mean, $stdDev)
NORMINV.
Definition: Normal.php:64
+ Here is the call graph for this function:

◆ NORMSDIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::NORMSDIST (   $value)
static

NORMSDIST.

Returns the standard normal cumulative distribution function. The distribution has a mean of 0 (zero) and a standard deviation of one. Use this function in place of a table of standard normal curve areas.

1.18.0

See also
Statistical::cumulative() Use the cumulative() method in the Statistical class instead
Parameters
mixed$value
Returns
float|string The result, or a string containing an error

Definition at line 1202 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\StandardNormal\cumulative().

+ Here is the call graph for this function:

◆ NORMSDIST2()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::NORMSDIST2 (   $value,
  $cumulative 
)
static

NORM.S.DIST.

Returns the standard normal cumulative distribution function. The distribution has a mean of 0 (zero) and a standard deviation of one. Use this function in place of a table of standard normal curve areas.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
mixed$value
mixed$cumulative
Returns
float|string The result, or a string containing an error

Definition at line 1224 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\StandardNormal\distribution().

1225  {
1226  return Statistical\Distributions\StandardNormal::distribution($value, $cumulative);
1227  }
+ Here is the call graph for this function:

◆ NORMSINV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::NORMSINV (   $value)
static

NORMSINV.

Returns the inverse of the standard normal cumulative distribution

1.18.0

See also
Statistical::inverse() Use the inverse() method in the Statistical class instead
Parameters
mixed$value
Returns
float|string The result, or a string containing an error

Definition at line 1243 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\StandardNormal\inverse().

+ Here is the call graph for this function:

◆ PERCENTILE()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::PERCENTILE (   $args)
static

PERCENTILE.

Returns the nth percentile of values in a range..

Excel Function: PERCENTILE(value1[,value2[, ...]],entry)

1.18.0

See also
Statistical::PERCENTILE() Use the PERCENTILE() method in the Statistical class instead
Parameters
mixed$argsData values
Returns
float|string The result, or a string containing an error

Definition at line 1265 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Percentiles\PERCENTILE().

1266  {
1267  return Statistical\Percentiles::PERCENTILE(...$args);
1268  }
+ Here is the call graph for this function:

◆ PERCENTRANK()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::PERCENTRANK (   $valueSet,
  $value,
  $significance = 3 
)
static

PERCENTRANK.

Returns the rank of a value in a data set as a percentage of the data set. Note that the returned rank is simply rounded to the appropriate significant digits, rather than floored (as MS Excel), so value 3 for a value set of 1, 2, 3, 4 will return 0.667 rather than 0.666

1.18.0

See also
Statistical::PERCENTRANK() Use the PERCENTRANK() method in the Statistical class instead
Parameters
mixed$valueSetAn array of, or a reference to, a list of numbers
mixed$valuethe number whose rank you want to find
mixed$significancethe number of significant digits for the returned percentage value
Returns
float|string (string if result is an error)

Definition at line 1289 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Percentiles\PERCENTRANK().

1290  {
1291  return Statistical\Percentiles::PERCENTRANK($valueSet, $value, $significance);
1292  }
static PERCENTRANK($valueSet, $value, $significance=3)
PERCENTRANK.
Definition: Percentiles.php:76
+ Here is the call graph for this function:

◆ PERMUT()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::PERMUT (   $numObjs,
  $numInSet 
)
static

PERMUT.

Returns the number of permutations for a given number of objects that can be selected from number objects. A permutation is any set or subset of objects or events where internal order is significant. Permutations are different from combinations, for which the internal order is not significant. Use this function for lottery-style probability calculations.

1.17.0

See also
Statistical::PERMUT() Use the PERMUT() method in the Statistical class instead
Parameters
int$numObjsNumber of different objects
int$numInSetNumber of objects in each permutation
Returns
float|int|string Number of permutations, or a string containing an error

Definition at line 1313 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Permutations\PERMUT().

1314  {
1315  return Permutations::PERMUT($numObjs, $numInSet);
1316  }
+ Here is the call graph for this function:

◆ POISSON()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::POISSON (   $value,
  $mean,
  $cumulative 
)
static

POISSON.

Returns the Poisson distribution. A common application of the Poisson distribution is predicting the number of events over a specific time, such as the number of cars arriving at a toll plaza in 1 minute.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
mixed$value
mixed$meanMean Value
mixed$cumulative
Returns
float|string The result, or a string containing an error

Definition at line 1336 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Poisson\distribution().

1337  {
1338  return Statistical\Distributions\Poisson::distribution($value, $mean, $cumulative);
1339  }
static distribution($value, $mean, $cumulative)
POISSON.
Definition: Poisson.php:24
+ Here is the call graph for this function:

◆ QUARTILE()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::QUARTILE (   $args)
static

QUARTILE.

Returns the quartile of a data set.

Excel Function: QUARTILE(value1[,value2[, ...]],entry)

1.18.0

See also
Statistical::QUARTILE() Use the QUARTILE() method in the Statistical class instead
Parameters
mixed$argsData values
Returns
float|string The result, or a string containing an error

Definition at line 1358 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Percentiles\QUARTILE().

1359  {
1360  return Statistical\Percentiles::QUARTILE(...$args);
1361  }
+ Here is the call graph for this function:

◆ RANK()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::RANK (   $value,
  $valueSet,
  $order = 0 
)
static

RANK.

Returns the rank of a number in a list of numbers.

1.18.0

See also
Statistical::RANK() Use the RANK() method in the Statistical class instead
Parameters
mixed$valuethe number whose rank you want to find
mixed$valueSetAn array of, or a reference to, a list of numbers
mixed$orderOrder to sort the values in the value set
Returns
float|string The result, or a string containing an error

Definition at line 1379 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Percentiles\RANK().

1380  {
1381  return Statistical\Percentiles::RANK($value, $valueSet, $order);
1382  }
static RANK($value, $valueSet, $order=self::RANK_SORT_DESCENDING)
RANK.
+ Here is the call graph for this function:

◆ RSQ()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::RSQ (   $yValues,
  $xValues 
)
static

RSQ.

Returns the square of the Pearson product moment correlation coefficient through data points in known_y's and known_x's.

1.18.0

See also
Statistical::RSQ() Use the RSQ() method in the Statistical class instead
Parameters
mixed[]$yValues Data Series Y
mixed[]$xValues Data Series X
Returns
float|string The result, or a string containing an error

Definition at line 1399 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\RSQ().

1400  {
1401  return Trends::RSQ($yValues, $xValues);
1402  }
+ Here is the call graph for this function:

◆ SKEW()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::SKEW (   $args)
static

SKEW.

Returns the skewness of a distribution. Skewness characterizes the degree of asymmetry of a distribution around its mean. Positive skewness indicates a distribution with an asymmetric tail extending toward more positive values. Negative skewness indicates a distribution with an asymmetric tail extending toward more negative values.

1.18.0

See also
Statistical::skew() Use the skew() method in the Statistical class instead
Parameters
array...$args Data Series
Returns
float|string The result, or a string containing an error

Definition at line 1421 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Deviations\skew().

1422  {
1423  return Statistical\Deviations::skew(...$args);
1424  }
+ Here is the call graph for this function:

◆ SLOPE()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::SLOPE (   $yValues,
  $xValues 
)
static

SLOPE.

Returns the slope of the linear regression line through data points in known_y's and known_x's.

1.18.0

See also
Statistical::SLOPE() Use the SLOPE() method in the Statistical class instead
Parameters
mixed[]$yValues Data Series Y
mixed[]$xValues Data Series X
Returns
float|string The result, or a string containing an error

Definition at line 1441 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\SLOPE().

1442  {
1443  return Trends::SLOPE($yValues, $xValues);
1444  }
static SLOPE($yValues, $xValues)
SLOPE.
Definition: Trends.php:352
+ Here is the call graph for this function:

◆ SMALL()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::SMALL (   $args)
static

SMALL.

Returns the nth smallest value in a data set. You can use this function to select a value based on its relative standing.

Excel Function: SMALL(value1[,value2[, ...]],entry)

1.18.0

See also
Statistical::small() Use the small() method in the Statistical class instead
Parameters
mixed$argsData values
Returns
float|string The result, or a string containing an error

Definition at line 1464 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Size\small().

1465  {
1466  return Statistical\Size::small(...$args);
1467  }
+ Here is the call graph for this function:

◆ STANDARDIZE()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::STANDARDIZE (   $value,
  $mean,
  $stdDev 
)
static

STANDARDIZE.

Returns a normalized value from a distribution characterized by mean and standard_dev.

1.18.0

See also
Statistical::execute() Use the execute() method in the Statistical class instead
Parameters
float$valueValue to normalize
float$meanMean Value
float$stdDevStandard Deviation
Returns
float|string Standardized value, or a string containing an error

Definition at line 1485 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Standardize\execute().

1486  {
1487  return Statistical\Standardize::execute($value, $mean, $stdDev);
1488  }
static execute($value, $mean, $stdDev)
STANDARDIZE.
Definition: Standardize.php:21
+ Here is the call graph for this function:

◆ STDEV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::STDEV (   $args)
static

STDEV.

Estimates standard deviation based on a sample. The standard deviation is a measure of how widely values are dispersed from the average value (the mean).

Excel Function: STDEV(value1[,value2[, ...]])

1.17.0

See also
Statistical::STDEV() Use the STDEV() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string The result, or a string containing an error

Definition at line 1508 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\StandardDeviations\STDEV().

1509  {
1510  return StandardDeviations::STDEV(...$args);
1511  }
+ Here is the call graph for this function:

◆ STDEVA()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::STDEVA (   $args)
static

STDEVA.

Estimates standard deviation based on a sample, including numbers, text, and logical values

Excel Function: STDEVA(value1[,value2[, ...]])

1.17.0

See also
Statistical::STDEVA() Use the STDEVA() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string

Definition at line 1530 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\StandardDeviations\STDEVA().

1531  {
1532  return StandardDeviations::STDEVA(...$args);
1533  }
+ Here is the call graph for this function:

◆ STDEVP()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::STDEVP (   $args)
static

STDEVP.

Calculates standard deviation based on the entire population

Excel Function: STDEVP(value1[,value2[, ...]])

1.17.0

See also
Statistical::STDEVP() Use the STDEVP() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string

Definition at line 1552 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\StandardDeviations\STDEVP().

1553  {
1554  return StandardDeviations::STDEVP(...$args);
1555  }
+ Here is the call graph for this function:

◆ STDEVPA()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::STDEVPA (   $args)
static

STDEVPA.

Calculates standard deviation based on the entire population, including numbers, text, and logical values

Excel Function: STDEVPA(value1[,value2[, ...]])

1.17.0

See also
Statistical::STDEVPA() Use the STDEVPA() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string

Definition at line 1574 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\StandardDeviations\STDEVPA().

1575  {
1576  return StandardDeviations::STDEVPA(...$args);
1577  }
+ Here is the call graph for this function:

◆ STEYX()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::STEYX (   $yValues,
  $xValues 
)
static

STEYX.

1.18.0

See also
Statistical::STEYX() Use the STEYX() method in the Statistical class instead

Returns the standard error of the predicted y-value for each x in the regression.

Parameters
mixed[]$yValues Data Series Y
mixed[]$xValues Data Series X
Returns
float|string

Definition at line 1594 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\STEYX().

1595  {
1596  return Trends::STEYX($yValues, $xValues);
1597  }
static STEYX($yValues, $xValues)
STEYX.
Definition: Trends.php:376
+ Here is the call graph for this function:

◆ TDIST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::TDIST (   $value,
  $degrees,
  $tails 
)
static

TDIST.

Returns the probability of Student's T distribution.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
float$valueValue for the function
float$degreesdegrees of freedom
float$tailsnumber of tails (1 or 2)
Returns
float|string The result, or a string containing an error

Definition at line 1615 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\StudentT\distribution().

1616  {
1617  return Statistical\Distributions\StudentT::distribution($value, $degrees, $tails);
1618  }
+ Here is the call graph for this function:

◆ TINV()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::TINV (   $probability,
  $degrees 
)
static

TINV.

Returns the one-tailed probability of the Student-T distribution.

1.18.0

See also
Statistical::inverse() Use the inverse() method in the Statistical class instead
Parameters
float$probabilityProbability for the function
float$degreesdegrees of freedom
Returns
float|string The result, or a string containing an error

Definition at line 1635 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\StudentT\inverse().

1636  {
1637  return Statistical\Distributions\StudentT::inverse($probability, $degrees);
1638  }
+ Here is the call graph for this function:

◆ TREND()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::TREND (   $yValues,
  $xValues = [],
  $newValues = [],
  $const = true 
)
static

TREND.

Returns values along a linear Trend

1.18.0

See also
Statistical::TREND() Use the TREND() method in the Statistical class instead
Parameters
mixed[]$yValues Data Series Y
mixed[]$xValues Data Series X
mixed[]$newValues Values of X for which we want to find Y
bool$consta logical value specifying whether to force the intersect to equal 0
Returns
float[]

Definition at line 1657 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Trends\TREND().

1658  {
1659  return Trends::TREND($yValues, $xValues, $newValues, $const);
1660  }
static TREND($yValues, $xValues=[], $newValues=[], $const =true)
TREND.
Definition: Trends.php:402
+ Here is the call graph for this function:

◆ TRIMMEAN()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::TRIMMEAN (   $args)
static

TRIMMEAN.

Returns the mean of the interior of a data set. TRIMMEAN calculates the mean taken by excluding a percentage of data points from the top and bottom tails of a data set.

Excel Function: TRIMEAN(value1[,value2[, ...]], $discard)

1.18.0

See also
Statistical::trim() Use the trim() method in the Statistical class instead
Parameters
mixed$argsData values
Returns
float|string

Definition at line 1681 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Averages\Mean\trim().

1682  {
1683  return Statistical\Averages\Mean::trim(...$args);
1684  }
+ Here is the call graph for this function:

◆ VARA()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::VARA (   $args)
static

VARA.

Estimates variance based on a sample, including numbers, text, and logical values

Excel Function: VARA(value1[,value2[, ...]])

1.17.0

See also
Statistical::VARA() Use the VARA() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string (string if result is an error)

Definition at line 1725 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Variances\VARA().

1726  {
1727  return Variances::VARA(...$args);
1728  }
+ Here is the call graph for this function:

◆ VARFunc()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::VARFunc (   $args)
static

VARFunc.

Estimates variance based on a sample.

Excel Function: VAR(value1[,value2[, ...]])

1.17.0

See also
Statistical::VAR() Use the VAR() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string (string if result is an error)

Definition at line 1703 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Variances\VAR().

1704  {
1705  return Variances::VAR(...$args);
1706  }
+ Here is the call graph for this function:

◆ VARP()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::VARP (   $args)
static

VARP.

Calculates variance based on the entire population

Excel Function: VARP(value1[,value2[, ...]])

1.17.0

See also
Statistical::VARP() Use the VARP() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string (string if result is an error)

Definition at line 1747 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Variances\VARP().

1748  {
1749  return Variances::VARP(...$args);
1750  }
+ Here is the call graph for this function:

◆ VARPA()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::VARPA (   $args)
static

VARPA.

Calculates variance based on the entire population, including numbers, text, and logical values

Excel Function: VARPA(value1[,value2[, ...]])

1.17.0

See also
Statistical::VARPA() Use the VARPA() method in the Statistical class instead
Parameters
mixed...$args Data values
Returns
float|string (string if result is an error)

Definition at line 1769 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Variances\VARPA().

1770  {
1771  return Variances::VARPA(...$args);
1772  }
+ Here is the call graph for this function:

◆ WEIBULL()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::WEIBULL (   $value,
  $alpha,
  $beta,
  $cumulative 
)
static

WEIBULL.

Returns the Weibull distribution. Use this distribution in reliability analysis, such as calculating a device's mean time to failure.

1.18.0

See also
Statistical::distribution() Use the distribution() method in the Statistical class instead
Parameters
float$value
float$alphaAlpha Parameter
float$betaBeta Parameter
bool$cumulative
Returns
float|string (string if result is an error)

Definition at line 1792 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Weibull\distribution().

1793  {
1794  return Statistical\Distributions\Weibull::distribution($value, $alpha, $beta, $cumulative);
1795  }
static distribution($value, $alpha, $beta, $cumulative)
WEIBULL.
Definition: Weibull.php:23
+ Here is the call graph for this function:

◆ ZTEST()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical::ZTEST (   $dataSet,
  $m0,
  $sigma = null 
)
static

ZTEST.

Returns the one-tailed P-value of a z-test.

For a given hypothesized population mean, x, Z.TEST returns the probability that the sample mean would be greater than the average of observations in the data set (array) — that is, the observed sample mean.

1.18.0

See also
Statistical::zTest() Use the zTest() method in the Statistical class instead
Parameters
float$dataSet
float$m0Alpha Parameter
float$sigmaBeta Parameter
Returns
float|string (string if result is an error)

Definition at line 1816 of file Statistical.php.

References PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\StandardNormal\zTest().

1817  {
1818  return Statistical\Distributions\StandardNormal::zTest($dataSet, $m0, $sigma);
1819  }
+ Here is the call graph for this function:

Field Documentation

◆ EPS

const PhpOffice\PhpSpreadsheet\Calculation\Statistical::EPS = 2.22e-16

Definition at line 22 of file Statistical.php.

◆ LOG_GAMMA_X_MAX_VALUE

const PhpOffice\PhpSpreadsheet\Calculation\Statistical::LOG_GAMMA_X_MAX_VALUE = 2.55e305

Definition at line 21 of file Statistical.php.

◆ MAX_VALUE

const PhpOffice\PhpSpreadsheet\Calculation\Statistical::MAX_VALUE = 1.2e308

Definition at line 23 of file Statistical.php.

◆ SQRT2PI

const PhpOffice\PhpSpreadsheet\Calculation\Statistical::SQRT2PI = 2.5066282746310005024157652848110452530069867406099

Definition at line 24 of file Statistical.php.


The documentation for this class was generated from the following file: