|
Moodle
2.2.1
http://www.collinsharper.com
|
Static Public Member Functions | |
| static | default_certainty () |
| static | adjust_fraction ($fraction, $certainty) |
| static | get_string ($certainty) |
| static | summary_with_certainty ($summary, $certainty) |
Data Fields | |
| const | LOW = 1 |
| const | MED = 2 |
| const | HIGH = 3 |
Static Public Attributes | |
| static | $certainties = array(self::LOW, self::MED, self::HIGH) |
Static Protected Attributes | |
| static | $factor |
| static | $offset |
This helper class contains the constants and methods required for manipulating scores for certainly based marking.
Definition at line 617 of file behaviourbase.php.
| static adjust_fraction | ( | $ | fraction, |
| $ | certainty | ||
| ) | [static] |
Given a fraction, and a certainly, compute the adjusted fraction.
| number | $fraction | the raw fraction for this question. |
| int | $certainty | one of the certainly level constants. |
Definition at line 654 of file behaviourbase.php.

| static default_certainty | ( | ) | [static] |
#@-
Definition at line 644 of file behaviourbase.php.

| static get_string | ( | $ | certainty | ) | [static] |
| int | $certainty | one of the LOW/MED/HIGH constants. |
Definition at line 662 of file behaviourbase.php.

| static summary_with_certainty | ( | $ | summary, |
| $ | certainty | ||
| ) | [static] |
Definition at line 666 of file behaviourbase.php.


$certainties = array(self::LOW, self::MED, self::HIGH) [static] |
Definition at line 625 of file behaviourbase.php.
$factor [static, protected] |
array( self::LOW => 0.333333333333333, self::MED => 1.333333333333333, self::HIGH => 3, )
Definition at line 628 of file behaviourbase.php.
$offset [static, protected] |
array( self::LOW => 0, self::MED => -0.666666666666667, self::HIGH => -2, )
Definition at line 633 of file behaviourbase.php.
| const HIGH = 3 |
Definition at line 621 of file behaviourbase.php.
| const LOW = 1 |
Definition at line 619 of file behaviourbase.php.
| const MED = 2 |
Definition at line 620 of file behaviourbase.php.