mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Show hit error on results screen
Leading up to implementation of "local offset", this feels like a good thing to have visible first and foremost.
This commit is contained in:
@ -22,6 +22,9 @@ namespace osu.Game.Rulesets.Scoring
|
||||
return 10 * standardDeviation(timeOffsets);
|
||||
}
|
||||
|
||||
public static double? CalculateAverageHitError(this IEnumerable<HitEvent> hitEvents) =>
|
||||
hitEvents.Where(affectsUnstableRate).Select(ev => ev.TimeOffset).Average();
|
||||
|
||||
private static bool affectsUnstableRate(HitEvent e) => !(e.HitObject.HitWindows is HitWindows.EmptyHitWindows) && e.Result.IsHit();
|
||||
|
||||
private static double? standardDeviation(double[] timeOffsets)
|
||||
|
Reference in New Issue
Block a user