powered by
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 )
A single numeric value: the estimated 95th percentile of the index under noise.
A function that takes either a 2-column matrix or two numeric vectors and returns a scalar index.
Integer. Number of index evaluations to simulate. Default is 100.
Integer. Number of observations per noise sample. Default is 500.
Character. Type of noise to use (e.g., "gaussian", "t_distributed", etc.). Default is "gaussian".
Numeric. Controls the scale/spread of the generated noise. Default is 0.01.
Optional integer. Random seed for reproducibility.
ppi_noise_threshold( index_fun = scag_index("stringy"), noise_type = "cauchy", noise_level = 0.1, n_sim = 10, n_obs = 100 )
Run the code above in your browser using DataLab