View source: R/index_noise_threshold.R
| ppi_noise_threshold | R Documentation |
This function estimates the 95th percentile of a projection pursuit index under synthetic noise data.
ppi_noise_threshold(
index_fun,
n_sim = 100,
n_obs = 500,
noise_type = "gaussian",
noise_level = 0.01,
seed = NULL
)
index_fun |
A function that takes either a 2-column matrix or two numeric vectors and returns a scalar index. |
n_sim |
Integer. Number of index evaluations to simulate. Default is 100. |
n_obs |
Integer. Number of observations per noise sample. Default is 500. |
noise_type |
Character. Type of noise to use (e.g., "gaussian", "t_distributed", etc.). Default is "gaussian". |
noise_level |
Numeric. Controls the scale/spread of the generated noise. Default is 0.01. |
seed |
Optional integer. Random seed for reproducibility. |
A single numeric value: the estimated 95th percentile of the index under noise.
ppi_noise_threshold(
index_fun = scag_index("stringy"),
noise_type = "cauchy",
noise_level = 0.1,
n_sim = 10,
n_obs = 100
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.