Skip to contents

Sobol design pushed through the prior's inverse CDF

Usage

design_from_prior(n, prior_ppf, dim = NULL, skip = 1L)

Arguments

n

Number of points.

prior_ppf

Either a list of per-parameter quantile functions or a list list(lo, hi) for independent uniform priors.

dim

Optional dimension check.

skip

Drop that many leading Sobol points (default 1, so the origin is not sent to the prior corner).

Value

Numeric matrix with n rows.

Examples

design_from_prior(5, list(c(0, -1), c(1, 1)))
#>       [,1]  [,2]
#> [1,] 0.500  0.00
#> [2,] 0.750 -0.50
#> [3,] 0.250  0.50
#> [4,] 0.375 -0.25
#> [5,] 0.875  0.75