pub fn parallel_bootstrap(
data: &[f64],
statistic: &(dyn Fn(&[f64]) -> f64 + Send + Sync),
n_bootstrap: usize,
confidence_level: f64,
seed: Option<u64>,
) -> StatsResult<ParallelBootstrapResult>Expand description
Run a parallel bootstrap procedure.
Distributes bootstrap resampling across threads, each with an independent pseudo-random number generator seed.
ยงArguments
data- Input datastatistic- Function computing the statistic from a sample slicen_bootstrap- Number of bootstrap samplesconfidence_level- Confidence level for CI (e.g. 0.95)seed- Optional random seed