INNER CODE UNIT · Rust

sample

TeamAtomECS/AtomECS · src/atom_sources/mod.rs:140

    fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64 {
        let index = self.weighted_index.sample(rng);
        self.values[index]
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…