1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 11:12:54 +08:00

changed pow to exp function

This commit is contained in:
emu1337 2021-10-11 19:58:03 +02:00
parent aab3277024
commit d7483a6c5d

View File

@ -184,7 +184,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
public double RelevantNoteCount()
{
double maxStrain = objectStrains.Max();
return objectStrains.Aggregate((total, next) => total + (1.0 / (1.0 + Math.Pow(Math.E, -(next/maxStrain * 12.0 - 6.0)))));
return objectStrains.Aggregate((total, next) => total + (1.0 / (1.0 + Math.Exp(-(next/maxStrain * 12.0 - 6.0)))));
}
}
}