View source: R/test_functions.R
sobol_fun | R Documentation |
This function evaluates the Sobol G function on a set of input samples generated via crude Monte Carlos. It returns both the sampled inputs and the corresponding function outputs.
sobol_fun(N, a = c(0, 1, 4.5, 9, 99, 99, 99, 99))
N |
Integer. Number of input samples to generate. |
a |
(default: |
The Sobol G function is defined as:
Y = \prod_{j=1}^{8} \frac{|\ 4 X_j - 2\ | + a_j}{1 + a_j}
where X_j \sim \mathcal{U}(0, 1)
independently.
A list with two elements:
x
: a numeric matrix of size N x 8
containing the input samples.
y
: a numeric vector of length N
with the corresponding function outputs.
ishi_homma_fun
, gaussian_fun
result <- sobol_fun(1000)
head(result$x)
head(result$y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.