Skip to content

Commit

Permalink
Remove unused param from normalizeScore() (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwojcik committed Nov 17, 2023
1 parent 97e52e3 commit 6a9d73f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion util/Reporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ bool ReportDistribution( const std::vector<double> & scores, int tests, int hash

double p_value = ScalePValue(GetStdNormalPValue(worstN), tests);
int logp_value = GetLog2PValue(p_value);
double mult = normalizeScore(worstN, worstWidth, tests);
double mult = normalizeScore(worstN, worstWidth);

recordLog2PValue(logp_value);
if (logpp != NULL) {
Expand Down
2 changes: 1 addition & 1 deletion util/Stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ double calcScore( const uint64_t sumsq, const int bincount, const int keycount )

// Convert the score from calcScore back into (rmse/sqrt(lambda) -
// 1.0), to show the user something like the previous report.
double normalizeScore( double score, int scorewidth, int tests ) {
double normalizeScore( double score, int scorewidth ) {
if (score <= 0) {
return 0.0;
}
Expand Down
2 changes: 1 addition & 1 deletion util/Stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ template <typename T>
uint64_t sumSquaresBasic( const T * bins, size_t bincount );

double calcScore( const uint64_t sumsq, const int bincount, const int ballcount );
double normalizeScore( double score, int scorewidth, int tests );
double normalizeScore( double score, int scorewidth );

double ChiSqIndepValue( const uint32_t * boxes, size_t total );
double ChiSqPValue( double chisq, uint64_t dof );

0 comments on commit 6a9d73f

Please sign in to comment.