Skip to content

Commit

Permalink
Per issue #2206, updated the crps_emp_fair calculation to subtract th…
Browse files Browse the repository at this point in the history
…e weighted_mean_abs_diff. SL
  • Loading branch information
Seth Linden committed Sep 7, 2022
1 parent 2c13f4a commit 51d5f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcode/vx_statistics/pair_data_ensemble.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51d5f67

Please sign in to comment.