R/lhs.R

# samples parameter sets from parameter space by latin hypercube sampling
lhs = function(mod.pars.range,n) {
  no.pars = length(mod.pars.range)
  par.sets = randomLHS(n=n, k=no.pars)
  # transform parameters from [0,1] to actual value range                             
  #...
  return(par.sets)
}

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.