View source: R/discrepancy_ersatz.R
discrepancy_ersatz | R Documentation |
It allows to use the S-ersatz discrepancy measure by \insertCitepuy2023_discrepancy;textualsensobol as a sensitivity measure.
discrepancy_ersatz(mat, Y, params)
mat |
A numeric matrix created with |
Y |
A numeric vector with the model output obtained from the matrix created with
|
params |
A character vector with the name of the model inputs. |
It is recommended to define mat
using a power of 2 as a sample size.
A data.table
object.
# Define settings
N <- 2^9; params <- paste("X", 1:8, sep = "")
# Create sample matrix
mat <- sobol_matrices(N = N, params = params, matrices = "A")
# Compute the Sobol' G function
Y <- sobol_Fun(mat)
# Compute the S-ersatz discrepancy values
ind <- discrepancy_ersatz(mat = mat, Y = Y, params = params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.