(&self)
| 195 | } |
| 196 | |
| 197 | pub fn current(&self) -> Option<f64> { |
| 198 | if self.window.len() < self.cfg.support_buckets { |
| 199 | None |
| 200 | } else { |
| 201 | Some(self.window_sum / self.window.len() as f64) |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | pub fn completed_buckets(&self) -> usize { |
| 206 | self.window.len() |