public CountingBloomFilter(int filterSize, byte hashFunctionsSetSize) { filter = new int[filterSize]; this.hashFunctionsSetSize = hashFunctionsSetSize + 1; hash = new FowlerNollVo1ABasedHash(); this.filterSize = filterSize; }
public void DifferentHashForDifferentSeedValue() { var sut = new FowlerNollVo1ABasedHash(); const string input = "test"; Assert.NotEqual(sut.GetHash(input, 1), sut.GetHash(input, 2)); }
public BloomFilter(byte hashFunctionsSetSize) { filter = new BitArray(int.MaxValue); this.hashFunctionsSetSize = hashFunctionsSetSize + 1; hash = new FowlerNollVo1ABasedHash(); }