Skip to content

Commit

Permalink
Per issue #2206, in aggr_orank_lines(), updated calculation for crps_…
Browse files Browse the repository at this point in the history
…emp_fair to use weighted_mean_abs_diff. SL
  • Loading branch information
Seth Linden committed Sep 7, 2022
1 parent 51d5f67 commit 44309c6
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.mean_abs_diff());
m[key].ens_pd.crps_emp_fair_na.add(crps_emp - cur.ens_na.weighted_mean_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 44309c6

Please sign in to comment.