mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 10:23:20 +08:00
Fix pp counter
This commit is contained in:
parent
8a582eef35
commit
089b27d4d3
@ -103,12 +103,12 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
|
||||
var bins = createBins(maxDiff);
|
||||
|
||||
double lowerBoundEstimate = 0.5 * maxDiff;
|
||||
const double lower_bound = 0;
|
||||
double upperBoundEstimate = 3.0 * maxDiff;
|
||||
|
||||
double skill = Chandrupatla.FindRootExpand(
|
||||
skill => fcProbabilityAtSkill(skill, bins) - fc_probability,
|
||||
lowerBoundEstimate,
|
||||
lower_bound,
|
||||
upperBoundEstimate,
|
||||
accuracy: 1e-4);
|
||||
|
||||
@ -120,12 +120,12 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
double maxDiff = difficulties.Max();
|
||||
if (maxDiff <= 1e-10) return 0;
|
||||
|
||||
double lowerBoundEstimate = 0.5 * maxDiff;
|
||||
const double lower_bound = 0;
|
||||
double upperBoundEstimate = 3.0 * maxDiff;
|
||||
|
||||
double skill = Chandrupatla.FindRootExpand(
|
||||
skill => fcProbabilityAtSkill(skill) - fc_probability,
|
||||
lowerBoundEstimate,
|
||||
lower_bound,
|
||||
upperBoundEstimate,
|
||||
accuracy: 1e-4);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user