Hello,
with this post I'd like to collect some feedback regarding MDL-44508. This is about an improvement in grade calculations.
In our Moodle installation, we quite frequently use coursework marks computed as "best 3 out of 5 assignments" or similar. This kind of total can be computed, for example, via the gradebook user interface ("keep the best 3" in a category total). However, being a Maths department, we like to do our computations with gradebook formulas instead (where the "best out of" computation might be only one part of the story).
To that end, we've added an additional function "BEST" to evalmath.php, which computes the average of the best n of a series of marks. For example, with A1, A2, ... A5 being the identifiers of some gradebook columns, the formula
= BEST(3, [ [A1] ], [ [A2] ], [ [A3] ], [ [A4] ], [ [A5] ])
would give the "best 3 out of 5" computation.
As another example,
BEST(3, 10, 20, 40, 30)
gives 30 (namely, the average of 20, 30, 40).
My question is whether anyone else finds this feature useful, and whether you think it should be integrated into Moodle (again, MDL-44508 is the place to cast your vote).
Best wishes
Henning