Data Science, Data Visualization, Data Analysis, Rust, Programming.
random_points3:Vec<(f64,f64)> = { let dist = NegativeBinomial::new(4.0, 0.5).unwrap(); let mut trials: Vec<f64> = (0 .. 25).map(f64::from).collect(); let y_iter: Vec<f64> = trials.iter().map(|x| dist.pmf(*x as u64)).collect(); trials.into_iter().zip(y_iter).collect() }; let