Skip to content

Commit

Permalink
correctly mirror eo's aggregate function internally this time
Browse files Browse the repository at this point in the history
also update incorrectly compiled linux calc
  • Loading branch information
MinaciousGrace committed Nov 5, 2017
1 parent 0848477 commit bb6dfc5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified extern/MinaCalc/MinaCalc.a
Binary file not shown.
2 changes: 1 addition & 1 deletion src/ScoreManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ float ScoreManager::AggregateSSRs(Skillset ss, float rating, float res, int iter
sum = 0.0;
for (int i = 0; i < static_cast<int>(TopSSRs.size()); i++) {
if(TopSSRs[i]->GetSSRCalcVersion() == GetCalcVersion() && TopSSRs[i]->GetEtternaValid() && TopSSRs[i]->GetChordCohesion() == 0 && TopSSRs[i]->GetTopScore() != 0)
sum += max(0.0, 1.5f / erfc(0.1*(TopSSRs[i]->GetSkillsetSSR(ss) - rating)) - 1.5);
sum += max(0.0, 2.f / erfc(0.1*(TopSSRs[i]->GetSkillsetSSR(ss) - rating)) - 2);
}
} while (pow(2, rating * 0.1) < sum);
if (iter == 11)
Expand Down

0 comments on commit bb6dfc5

Please sign in to comment.