Create partial function to sample from gamma distributions

dist_setup(dist_shape = NULL, dist_scale = NULL)

Arguments

dist_shape

a positive numeric scalar: shape parameter of Weibull distribution

dist_scale

a positive numeric scalar: scale parameter of Weibull distribution

Value

partial function that takes a numeric argument for number of samples

Author

Joel Hellewell

Examples

incfn <- dist_setup(dist_shape = 2.32, dist_scale = 6.49)
incfn(5)
#> [1] 7.558969 7.044359 8.714706 9.381946 9.462194