Data Science, Data Visualization, Data Analysis, Rust, Programming.
10).map(f64::from).collect(); let y_iter: Vec<f64> = trials.iter().map(|x| dist.pdf(*x)).collect(); trials.into_iter().zip(y_iter).collect() }; let random_points3:Vec<(f64,f64)> = { let dist = Laplace::new(0.0, 4.0).unwrap(); let mut trials: Vec<f64> = (-10 .. 10).map(f64::from).collect(); let