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.688 0.236 6.08
#> 2 0.0913 1.71 7.79
#> 3 0.532 0.794 3.16