R/get.model.pars.R

# compute a random realisation of model a parameter set
get.model.pars = function(mod.pars.range) {
  len = length(mod.pars.range)
  result = list()
  for (i in 1:len) {
    result[[i]] = runif(1,mod.pars.range[[i]][1],mod.pars.range[[i]][2])
  }
  names(result) = names(mod.pars.range)
  return(result)
}

Try the RHydro package in your browser

Any scripts or data that you put into this service are public.

RHydro documentation built on May 2, 2019, 6:24 p.m.