View source: R/test_functions.R
ishigami_Fun | R Documentation |
It implements the \insertCiteIshigami1990;textualsensobol function.
ishigami_Fun(X)
X |
A data frame or numeric matrix where each column is a model input and each row a sample point. |
The function requires 3 model inputs and reads as
y=\sin(x_1) +a \sin(x_2) ^ 2 + b x_3 ^4 \sin(x_1)\,,
where a=2
, b=1
and (x_1,x_2,x_3)\sim\mathcal{U}(-\pi, +\pi)
. The
transformation of the distribution of the model inputs from U(0, 1)
to
U(-\pi, +\pi)
) is conducted internally.
A numeric vector with the model output.
# Define settings
N <- 100; params <- paste("X", 1:3, sep = "")
# Create sample matrix
mat <- sobol_matrices(N = N, params = params)
# Compute Ishigami function
Y <- ishigami_Fun(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.