public DualStamp(uint numberOfElements, uint bloofilterNumberOfBits) { privateUsed = 0; this.numberOfElements = numberOfElements; bloomfilter = new BloomfilterType(bloofilterNumberOfBits); termIdHistory = new /*TermId*/ uint[numberOfElements]; }
// returns if the two bloomfilter (can) collide by checking if bits of the bloomfilters overlap protected static bool collideByBloomfilter(DualStamp a, DualStamp b) { return(BloomfilterType.overlap(a.bloomfilter, b.bloomfilter)); }