mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 08:03:52 +09:00
Exclude misses and empty window hits from UR calculation
This commit is contained in:
@ -20,7 +20,8 @@ namespace osu.Game.Screens.Ranking.Statistics
|
|||||||
public UnstableRate(IEnumerable<HitEvent> hitEvents)
|
public UnstableRate(IEnumerable<HitEvent> hitEvents)
|
||||||
: base("Unstable Rate")
|
: base("Unstable Rate")
|
||||||
{
|
{
|
||||||
var timeOffsets = hitEvents.Select(ev => ev.TimeOffset).ToArray();
|
var timeOffsets = hitEvents.Where(e => !(e.HitObject.HitWindows is HitWindows.EmptyHitWindows) && e.Result != HitResult.Miss)
|
||||||
|
.Select(ev => ev.TimeOffset).ToArray();
|
||||||
Value = 10 * standardDeviation(timeOffsets);
|
Value = 10 * standardDeviation(timeOffsets);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user