MDL-47009 Grades: Improve natural weighting algorithm
authorDamyon Wiese <damyon@moodle.com>
Thu, 18 Sep 2014 06:43:34 +0000 (14:43 +0800)
committerAdrian Greeve <adrian@moodle.com>
Fri, 3 Oct 2014 05:53:01 +0000 (13:53 +0800)
commita2c13f686a2a21e406a7755c24a865602ace14af
tree9662288e8f46494c7ee9c56bb20d2a0c10d028e0
parent825fba1c5b150f99446d78abee20965238c2e196
MDL-47009 Grades: Improve natural weighting algorithm

It's still not perfect, but this is getting closer.

This is based on Johns work on MDL-47009 (just the algorithm). There are some additional
changes to scale the weights if they do not add up to 1.

Part of: MDL-46576
lib/grade/grade_category.php