예제 #1
0
 public CountingBloomFilter(int filterSize, byte hashFunctionsSetSize)
 {
     filter = new int[filterSize];
     this.hashFunctionsSetSize = hashFunctionsSetSize + 1;
     hash            = new FowlerNollVo1ABasedHash();
     this.filterSize = filterSize;
 }
예제 #2
0
        public void DifferentHashForDifferentSeedValue()
        {
            var          sut   = new FowlerNollVo1ABasedHash();
            const string input = "test";

            Assert.NotEqual(sut.GetHash(input, 1), sut.GetHash(input, 2));
        }
예제 #3
0
 public BloomFilter(byte hashFunctionsSetSize)
 {
     filter = new BitArray(int.MaxValue);
     this.hashFunctionsSetSize = hashFunctionsSetSize + 1;
     hash = new FowlerNollVo1ABasedHash();
 }