1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 10:33:22 +08:00
This commit is contained in:
Givikap120 2024-11-28 17:52:34 +02:00
parent eef605ead2
commit 4a5f2f9236

View File

@ -398,7 +398,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
double deviation = hitWindow300 / (Math.Sqrt(2) * SpecialFunctions.ErfInv(pLowerBound));
double randomValue = Math.Sqrt(2 / Math.PI) * hitWindow100 * Math.Exp(-0.5 * Math.Pow(hitWindow100 / deviation, 2))
/ (deviation * SpecialFunctions.Erf(hitWindow100 / (Math.Sqrt(2) * deviation)));
/ (deviation * SpecialFunctions.Erf(hitWindow100 / (Math.Sqrt(2) * deviation)));
deviation *= Math.Sqrt(1 - randomValue);