Initialize an empty sketch with the specified field_size size and capacity.
(self, field_size, capacity)
| 377 | """ |
| 378 | |
| 379 | def __init__(self, field_size, capacity): |
| 380 | """Initialize an empty sketch with the specified field_size size and capacity.""" |
| 381 | self.field_size = field_size |
| 382 | self.capacity = capacity |
| 383 | self.odd_syndromes = [0] * capacity |
| 384 | self.gf = GF2Ops(field_size) |
| 385 | |
| 386 | def add(self, element): |
| 387 | """Add an element to this sketch. 1 <= element < 2**field_size.""" |