Adds an element to the HyperLogLog.
(&mut self, obj: &T)
| 103 | |
| 104 | /// Adds an element to the HyperLogLog. |
| 105 | pub fn add(&mut self, obj: &T) { |
| 106 | let hash = self.hash_value(obj); |
| 107 | self.add_hashed(hash); |
| 108 | } |
| 109 | |
| 110 | /// Adds a pre-computed hash value directly to the HyperLogLog. |
| 111 | /// |