This function samples the parameter space using Latin Hypercube Sampling (LHS).
Examples
# Define parameter ranges
parameters <- data.frame(
param1 = c(0, 1),
param2 = c(0, 2),
param3 = c(0, 10)
)
# Sample the parameter space
sample_space <- sample_lhs(parameters, 3)
sample_space
#> # A tibble: 3 × 3
#> param1 param2 param3
#> <dbl> <dbl> <dbl>
#> 1 0.532 0.128 3.16
#> 2 0.847 1.03 7.60
#> 3 0.149 1.58 3.43
