From 51d5f67b75676e7c76be5984d4ae9b959a59d300 Mon Sep 17 00:00:00 2001 From: Seth Linden Date: Wed, 7 Sep 2022 14:49:37 -0600 Subject: [PATCH] Per issue #2206, updated the crps_emp_fair calculation to subtract the weighted_mean_abs_diff. SL --- src/libcode/vx_statistics/pair_data_ensemble.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcode/vx_statistics/pair_data_ensemble.cc b/src/libcode/vx_statistics/pair_data_ensemble.cc index b376641dda..be94fab5ca 100644 --- a/src/libcode/vx_statistics/pair_data_ensemble.cc +++ b/src/libcode/vx_statistics/pair_data_ensemble.cc @@ -479,7 +479,7 @@ void PairDataEnsemble::compute_pair_vals(const gsl_rng *rng_ptr) { // For crps_emp use temporary, local variable so we can use it for the crps_emp_fair calculation double crps_emp = compute_crps_emp(o_na[i], cur_ens); crps_emp_na.add(crps_emp); - crps_emp_fair_na.add(crps_emp - cur_ens.mean_abs_diff()); + crps_emp_fair_na.add(crps_emp - cur_ens.weighted_mean_abs_diff()); crpscl_emp_na.add(compute_crps_emp(o_na[i], cur_clm)); // Ensemble mean and standard deviation