Skip to main content

choose_sites

Function choose_sites 

Source
pub fn choose_sites(
    rng: &mut Xoshiro256,
    candidates: &[Site],
    n: usize,
) -> Vec<Site>
Expand description

n distinct sites drawn among candidates by a partial Fisher–Yates shuffle (thesis impurities_set): for i = 1..n, swap entry i with a uniform entry of i..=len. The order of candidates matters for reproducibility; the thesis lists the impurity region with x varying fastest.