View source: R/cost_rmse_biomee.R
cost_rmse_biomee | R Documentation |
Cost function for parameter calibration, which computes the root mean squared
error (RMSE) between BiomeE simulations (using the input set of parameters)
and observed target variables.
Cost function for parameter calibration, which
computes the RMSE for the biomee model fitting target variables
'GPP','LAI','Density'
and 'Biomass'
for a given set of parameters.
cost_rmse_biomee(par, obs, drivers)
par |
A vector containing parameter values for |
obs |
A nested data frame of observations, following the structure of |
drivers |
A nested data frame of driver data, for example |
The root mean squared error (RMSE) between the observed and simulated
values of 'GPP','LAI','Density'
and 'Biomass'
(all variables
have the same weight). Relative errors (difference divided by observed values) are used
instead of absolute errors.
The cost function performs a BiomeE model run for parameter values
par
and model drivers drivers
given as arguments, producing the
simulated values used to compute the RMSE.
# Compute RMSE for a set of
# model parameter values
# and example data
cost_rmse_biomee(
par = c(3.5, 3.5, 1, 1),
obs = biomee_validation_2,
drivers = biomee_gs_leuning_drivers
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.