Data Science, Data Visualization, Data Analysis, Rust, Programming.
174.0, 175.0, 176.0, 176.0, 178.0, 180.0]; let y_iter: Vec<f64> = heights.iter().map(|x| heights_dist.pdf(*x)).collect(); heights.into_iter().zip(y_iter).collect() }; println!("{:?}", random_points); // Output: // [(162.0, 0.0077111498014200905), (165.0, 0.0286124002877568), (167.0,