(&mut self)
| 223 | type Item = Vec<f64>; |
| 224 | |
| 225 | fn next(&mut self) -> Option<Vec<f64>> { |
| 226 | |
| 227 | let n = self.normal.len(); |
| 228 | let mut v: Vec<f64> = vec![]; |
| 229 | |
| 230 | for i in (0..n) { |
| 231 | v.push(self.normal[i].ind_sample(&mut self.rng)); |
| 232 | } |
| 233 | Some(v) |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | /// Creates a normally distributed data source. |