Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 400 and 403] [Versions 401 and 403]

(no description)

File Size: 180 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Normal:: (3 methods):
  distribution()
  inverse()
  inverseNcdf()


Class: Normal  - X-Ref

distribution($value, $mean, $stdDev, $cumulative)   X-Ref
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.

param: mixed $value Float value for which we want the probability
param: mixed $mean Mean value as a float
param: mixed $stdDev Standard Deviation as a float
param: mixed $cumulative Boolean value indicating if we want the cdf (true) or the pdf (false)
return: array|float|string The result, or a string containing an error

inverse($probability, $mean, $stdDev)   X-Ref
NORMINV.

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

param: mixed $probability Float probability for which we want the value
param: mixed $mean Mean Value as a float
param: mixed $stdDev Standard Deviation as a float
return: array|float|string The result, or a string containing an error

inverseNcdf(float $p)   X-Ref
No description