Helper for statistics.
More...
Helper for statistics.
- Copyright
- 2021 Catalyst IT Australia Pty Ltd
- Author
- Nathan Nguyen natha.nosp@m.nngu.nosp@m.yen@c.nosp@m.atal.nosp@m.yst-a.nosp@m.u.ne.nosp@m.t
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ calculate_average_question_discrimination_index()
static qbank_statistics\helper::calculate_average_question_discrimination_index |
( |
int | $questionid | ) |
|
|
static |
Calculate average discriminative efficiency.
- Parameters
-
int | $questionid | question id |
- Return values
-
- Deprecated
- since Moodle 4.3 please use the method from statistics_bulk_loader.
- Todo
- MDL-78090 Final deprecation in Moodle 4.7
◆ calculate_average_question_discriminative_efficiency()
static qbank_statistics\helper::calculate_average_question_discriminative_efficiency |
( |
int | $questionid | ) |
|
|
static |
Calculate average discriminative efficiency.
- Parameters
-
int | $questionid | question id |
- Return values
-
- Deprecated
- since Moodle 4.3 please use the method from statistics_bulk_loader.
- Todo
- MDL-78090 Final deprecation in Moodle 4.7
◆ calculate_average_question_facility()
static qbank_statistics\helper::calculate_average_question_facility |
( |
int | $questionid | ) |
|
|
static |
Calculate average facility index.
- Parameters
-
- Return values
-
- Deprecated
- since Moodle 4.3 please use the method from statistics_bulk_loader.
- Todo
- MDL-78090 Final deprecation in Moodle 4.7
◆ format_discrimination_index()
static qbank_statistics\helper::format_discrimination_index |
( |
?float | $value | ) |
|
|
static |
Format discrimination index (Needs checking?).
- Parameters
-
float | null | $value | stats value |
- Return values
-
◆ format_percentage()
static qbank_statistics\helper::format_percentage |
( |
?float | $number, |
|
|
bool | $fraction = true, |
|
|
int | $decimals = 2 ) |
|
static |
Format a number to a localised percentage with specified decimal points.
- Parameters
-
float | null | $number | The number being formatted |
bool | $fraction | An indicator for whether the number is a fraction or is already multiplied by 100 |
int | $decimals | Sets the number of decimal points |
- Return values
-
- Exceptions
-
The documentation for this class was generated from the following file: