Skip to content

Commit

Permalink
statistics_dialog: Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jostephd committed Jul 9, 2019
1 parent 6220f71 commit 0154550
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/dialogs/statistics_dialog.cpp
Expand Up @@ -274,6 +274,7 @@ static hitrate_table_element tally(const statistics::stats::hitrate_map& by_cth,
const auto chance_of_exactly_N_hits = [&final_hp_dist](int n) { return final_hp_dist[final_hp_dist.size() - 1 - n]; };

// The a priori probability of scoring less hits than the actual number of hits
// aka "percentile" or "p-value"
double probability_lt = 0.0;
for(unsigned int i = 0; i < overall_hits; ++i) {
probability_lt += chance_of_exactly_N_hits(i);
Expand Down

0 comments on commit 0154550

Please sign in to comment.