Description Usage Arguments Value Author(s) See Also
View source: R/calibraR-main.R
Create a new function, to be used as the objective function in the calibration, given a function to run the model within R, observed data and information about the comparison with data.
1 2 | createObjectiveFunction(runModel, info, observed, aggFn = .weighted.sum,
aggregate = FALSE, ...)
|
runModel |
Function to run the model and produce a list of outputs. |
info |
A data.frame with the information about the calibration,
normally created with the |
observed |
A list of the observed variables created with the
function |
aggFn |
A function to aggregate |
aggregate |
boolean, if TRUE, a scalar value is returned using the
|
... |
More arguments passed to the |
A function, integrating the simulation of the model and the comparison with observed data.
Ricardo Oliveros-Ramos
getObservedData
, getCalibrationInfo
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.