From c93090db0f019535b7ad46f7ce6616cac609ea09 Mon Sep 17 00:00:00 2001 From: Seth Linden Date: Thu, 8 Sep 2022 09:32:23 -0600 Subject: [PATCH] Per issue #2206, in aggr_orank_lines(), for the crps_emp_fair calculation, changed weighted_mean_abs_diff() to wmean_abs_diff(). SL --- src/tools/core/stat_analysis/aggr_stat_line.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/core/stat_analysis/aggr_stat_line.cc b/src/tools/core/stat_analysis/aggr_stat_line.cc index bb64bfb40c..e2061d30c2 100644 --- a/src/tools/core/stat_analysis/aggr_stat_line.cc +++ b/src/tools/core/stat_analysis/aggr_stat_line.cc @@ -3186,7 +3186,7 @@ void aggr_orank_lines(LineDataFile &f, STATAnalysisJob &job, // Store empirical CRPS stats and CRPS-Fair double crps_emp = compute_crps_emp(cur.obs, cur.ens_na); m[key].ens_pd.crps_emp_na.add(crps_emp); - m[key].ens_pd.crps_emp_fair_na.add(crps_emp - cur.ens_na.weighted_mean_abs_diff()); + m[key].ens_pd.crps_emp_fair_na.add(crps_emp - cur.ens_na.wmean_abs_diff()); m[key].ens_pd.crpscl_emp_na.add(compute_crps_emp(cur.obs, climo_vals)); // Store Gaussian CRPS stats