Skip to content

Commit

Permalink
Per issue #2206, in aggr_orank_lines(), for the crps_emp_fair calcula…
Browse files Browse the repository at this point in the history
…tion, changed weighted_mean_abs_diff() to wmean_abs_diff(). SL
  • Loading branch information
Seth Linden committed Sep 8, 2022
1 parent 48648cf commit c93090d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/core/stat_analysis/aggr_stat_line.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c93090d

Please sign in to comment.