From 6a9d73f7766a1d894b2d8ce18d35d8e824a2e11f Mon Sep 17 00:00:00 2001 From: "Frank J. T. Wojcik" Date: Thu, 2 Nov 2023 16:20:37 -0700 Subject: [PATCH] Remove unused param from normalizeScore() (NFC) --- util/Reporting.cpp | 2 +- util/Stats.cpp | 2 +- util/Stats.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/util/Reporting.cpp b/util/Reporting.cpp index c19f0464..09469d26 100644 --- a/util/Reporting.cpp +++ b/util/Reporting.cpp @@ -729,7 +729,7 @@ bool ReportDistribution( const std::vector & 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) { diff --git a/util/Stats.cpp b/util/Stats.cpp index 8cafc396..faf2d851 100644 --- a/util/Stats.cpp +++ b/util/Stats.cpp @@ -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; } diff --git a/util/Stats.h b/util/Stats.h index 7700bac6..4fbb016a 100644 --- a/util/Stats.h +++ b/util/Stats.h @@ -91,7 +91,7 @@ template 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 );