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: 64 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

F:: (1 method):
  distribution()


Class: F  - X-Ref

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

param: mixed $value Float value for which we want the probability
param: mixed $u The numerator degrees of freedom as an integer
param: mixed $v The denominator degrees of freedom as an integer
param: mixed $cumulative Boolean value indicating if we want the cdf (true) or the pdf (false)
return: array|float|string