Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 400 and 401]

(no description)

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

Defines 1 class

LogNormal:: (3 methods):
  cumulative()
  distribution()
  inverse()


Class: LogNormal  - X-Ref

cumulative($value, $mean, $stdDev)   X-Ref
LOGNORMDIST.

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

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
return: array|float|string The result, or a string containing an error

distribution($value, $mean, $stdDev, $cumulative = false)   X-Ref
LOGNORM.DIST.

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

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
LOGINV.

Returns the inverse of the lognormal cumulative distribution

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