Data Science, Data Visualization, Data Analysis, Rust, Programming.
individuals: Vec<f64> = (0 .. 10).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() }; The 0.5, 1.0, 1.5 values in each Exp::new method represents different values of λ. Notice the