Function ambient_math::cdf_sample

source ·
pub fn cdf_sample<T>(vector: &[T], weight: fn(_: usize, _: &T) -> f32) -> usize