Data Science, Data Visualization, Data Analysis, Rust, Programming.
= individuals.iter().map(|x| individuals_dist.pmf(*x as u64)).collect(); individuals.into_iter().zip(y_iter).collect() }; The 1.0, 5.0, 10.0 values in each Poisson::new method represents different values of λ. Notice the individuals_dist.pmf function invocation which computes the Poisson