Supply a list of defined distributions (log-normal, beta, gamma, uniform, triangle) and one realisation is taken of each.

sample_distributions(param.distns)

Arguments

param.distns

List of distribution names and their respective parameter values

Value

vector of sample points

Examples

sample_distributions(param.distns = list(distn = "unif", params = c(min=0, max=1)))
#> #> 1 0.08075014
sample_distributions(param.distns = list(distn = "lognormal", params = c(mean=10, sd=1)))
#> #> 1 58187.77
sample_distributions(param.distns = list(distn = "beta", params = c(mean=0.1, sd=0.1)))
#> #> 1 0.4754471
sample_distributions(param.distns = list(distn = "beta", params = c(a=0.1, b=0.1)))
#> #> 1 0.7935224
sample_distributions(param.distns = list(list(distn = "beta", params = c(a=0.1, b=0.1)), list(distn = "beta", params = c(a=0.1, b=0.1))))
#> #> 1 0.9999998 0.9994582