EnsError | R Documentation |
Computes various ensemble mean error scores. EnsMe
computes the mean error, EnsMae
the mean absolute error, EnsMse
the mean squared error, and EnsRmse
the square root of the mean
squared error (for consistency with the veri package).
EnsError(ens, obs, type)
EnsMe(ens, obs)
EnsMae(ens, obs)
EnsMse(ens, obs)
EnsRmse(ens, obs)
ens |
n x k matrix of n forecasts from k ensemble members |
obs |
n verifying observations |
type |
specifying what error metric to compute, one of [me, mae, mse, rmse] |
veriApply
, EnsErrorss
# forecast and observations
tm <- toymodel()
# compute the mean bias
EnsError(tm$fcst, tm$obs, type = "me")
# equivalently
EnsMe(tm$fcst, tm$obs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.