This folder contains the R code and generated outputs for the manuscript.
R/: core sampler, density, bound, validation, and SH26 comparison functions.myfunctions.R: loader for the core implementation.scripts/figures/: scripts for manuscript Figures 01--04.scripts/comparisons/: runtime comparison scripts.results/: CSV result files used by the runtime comparison figure.Figures/: current generated manuscript figure PNGs.R/SH26_functions.R: legacy SH26 helper needed by the comparison scripts.
Excluded material: exploratory checks, archived figure variants, old legacy figures, R history files, cached RData files, PDFs, and LaTeX build artifacts.
Parse all R source files from this directory:
Rscript -e 'files <- c(list.files("R", "[.]R$", full.names=TRUE), "myfunctions.R", list.files("scripts", "[.]R$", recursive=TRUE, full.names=TRUE)); invisible(lapply(files, parse)); cat("Parsed", length(files), "R files successfully.\n")'Run from this directory:
Rscript scripts/figures/Figure01.R
Rscript scripts/figures/Figure02.R
EXIT_BESSEL_RUNTIME_USE_CACHE=true Rscript scripts/figures/Figure03.R
Rscript scripts/figures/Figure04.RThe runtime comparison scripts can be rerun with:
Rscript scripts/comparisons/comparison_f.R
Rscript scripts/comparisons/comparison_g.Rcomparison_f.R uses EXIT_BESSEL_B to control accepted draws per setting;
the default is 10000.