Function sampling::bootstrap::bootstrap_copyable
source · pub fn bootstrap_copyable<F, R, N1>(
rng: R,
samples: usize,
data: &[N1],
reduction: F
) -> (f64, f64)
Expand description
Similar to bootstrap but for stuff that implements Copy
. Likely more effient in these cases
returns reduced value + estimated error (as sqrt of variance)