Skip to content

Commit

Permalink
Per #1761, call compute_percentile() when double-checking the percent…
Browse files Browse the repository at this point in the history
…ile values.
  • Loading branch information
JohnHalleyGotway committed Oct 27, 2021
1 parent e90bae3 commit 1f2c5e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions met/src/basic/vx_config/threshold.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1173,9 +1173,7 @@ else {
// compute the actual percentile and check tolerance
//

for ( i=count=0; i<data.n(); i++ ) if ( check(data[i]) ) count++;

ptile = (double) count / data.n();
ptile = data.compute_percentile(T, is_inclusive(op));
diff = abs(PT / 100.0 - ptile);

if ( !is_eq(PT / 100.0, ptile, perc_thresh_default_tol) ) {
Expand Down

0 comments on commit 1f2c5e4

Please sign in to comment.