Description Usage Arguments Details Examples
Calculates depth prediction error, either absolute or as a fraction of bankfull depth
1 | calc_depth_prediction_error(pred, truth, h = NULL, type)
|
pred |
minimum bed elevation z0 predictions |
truth |
true minimum bed elevation |
h |
bankfull water surface elevation. For UMESC data, it is the reference WSE. Not needed for absolute error. |
type |
can be "absolute" or "relative" or "mersel" |
Option "mersel" calculates standard error relative to bankfull depth, see Mersel et al. (2013)
1 2 3 4 5 6 7 8 | refWSE <- 470*0.3048 # meters, for pool 21
z0.l.error.abs <- calc_depth_prediction_error(z0.l, z0.true.ra, type = "absolute")
z0.l.error.rel <- calc_depth_prediction_error(z0.l, z0.true.ra, h = refWSE, type = "relative")
load("./Outputs/Final/p21/z0_pred.rda")
z0.true.ra <- readRDS("./Outputs/Final/p21/z0_true_ra.rds")
truth <- z0.true.ra
pred <- z0.l
z0.L.SE <- calc_depth_prediction_error(z0.l, z0.true.ra, h = refWSE, type = "mersel")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.