Five objective functions can be used to measure goodness of fit: 1) Nash-Sutcliffe efficiency coefficient (NSE), 2) Root Mean Square Error (RMSE), 3) Mean Absolute Error (MAE), 4) Relative Absolute Error (RAE), and 5) Pearson's r.
objective.fun(
sim,
obs,
fun = "RMSE",
start.date = "2017-06-06",
end.date = "2020-02-29",
min.depth = 0,
max.depth = 33,
by.value = 0.5
)
a matrix of bio-geochemical variable values with column of time and row of depth.
a data frame of observed value, with three columns: Date, depth, value.
objective function to be calculated. Selected one from "NSE", "RMSE", "MAE","RAE", and "Pearson".
the beginning and ending simulation dates for the intended DYRESM-CAEDYM model run. The date format must be "%Y-%m-%d".
minimum and maximum depth to be compared between simulations and observations.
the value of increment for depth.
a vector of objective function values. The first is NSE and the second is RMSE.