Mitarbeitsnote-Aggregation (3.2)
Neuer Dialog berechnet aus den Sitzungs-Bewertungen je Schüler eine Mitarbeitsnote (H1/H2/Gesamtjahr), mit editierbarer Aspekt-Gewichtung, Trendanzeige und Übernahme als Grade (Category=Participation).
This commit is contained in:
@@ -55,6 +55,15 @@ public class GradingService
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Wandelt eine Mitarbeit-Bewertung im Bereich -2..+2 in eine Note/Punktzahl
|
||||
/// nach dem jeweiligen Notensystem der Gruppe um (0 % = -2, 100 % = +2).
|
||||
public string ParticipationGrade(double averageRating, GradingSystem system)
|
||||
{
|
||||
var percent = Math.Clamp((averageRating + 2.0) / 4.0 * 100.0, 0, 100);
|
||||
var key = system == GradingSystem.Points0To15 ? DefaultKey0To15() : DefaultKey1To6();
|
||||
return CalculateGrade(percent, 100, key);
|
||||
}
|
||||
|
||||
public double WeightedAverage(List<(string Grade, double Weight)> grades)
|
||||
{
|
||||
var numeric = grades
|
||||
|
||||
Reference in New Issue
Block a user