mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 00:42:55 +08:00
Exclude misses and empty window hits from UR calculation
This commit is contained in:
parent
3b22b891d1
commit
3ca2a7767a
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user