Learn R Programming

hydroPSO (version 0.3-1-1)

verification: verification

Description

Run the model and get a goodness-of-fit value by comparing the simulated values against observations for the optimum parameter set found by optimisation

Usage

verification(fn="hydromod", par, control=list(), 
             model.FUN=NULL, model.FUN.args=list() )

Arguments

fn
character, name of a valid R function to be optimised or character value 'hydromod'. When fn='hydromod' the algorithm uses model.FUN and model.FUN.args to extract the values simulated by the model and to c
par
numeric, or matrix/data.frame with the parameter sets that will be used for verification Parameter sets in par must be stored by row, i.e., each different row represents a different parameter set
control
a list of control parameters. See Details
model.FUN
OPTIONAL. Only used when fn='hydromod' character, valid R function representing the model code to be calibrated/optimised
model.FUN.args
OPTIONAL. Only used when fn='hydromod' list with the arguments to be passed to model.FUN

Value

  • A list of two elements:
  • gofsgoodness-of-fit values corresponding to each one of the parameter sets provided in par
  • best.gofgoodness-of-fit of the "best" parameter set found during the verification round
  • best.parparameter values of the "best" paraemter set found during the verification round

Details

The control argument is a list that can supply any of the following components: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

See Also

hydromod