Data Science, Data Visualization, Data Analysis, Rust, Programming.
let mut individuals: Vec<f64> = (0 .. 20).map(f64::from).collect(); let y_iter: Vec<f64> = individuals.iter().map(|x| individuals_dist.pdf(*x)).collect(); individuals.into_iter().zip(y_iter).collect() }; let random_points2:Vec<(f64,f64)> = { let individuals_dist = Gamma::new(2.0, 2.0).unwrap(); let