Data Science, Data Visualization, Data Analysis, Rust, Programming.
trials.into_iter().zip(y_iter).collect() }; let random_points3:Vec<(f64,f64)> = { let dist = Beta::new(2.0, 2.0).unwrap(); let mut trials: Vec<f64> = vec![0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]; let y_iter: Vec<f64> = trials.iter().map(|x| dist.pdf(*x)).collect();