Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testOptimalNumOfHashFunctionsRounding (0.34 sec)

  1. guava-tests/test/com/google/common/hash/BloomFilterTest.java

          for (int m = 0; m < 1000; m++) {
            assertTrue(BloomFilter.optimalNumOfHashFunctions(n, m) > 0);
          }
        }
      }
    
      // https://github.com/google/guava/issues/1781
      public void testOptimalNumOfHashFunctionsRounding() {
        assertEquals(7, BloomFilter.optimalNumOfHashFunctions(319, 3072));
      }
    
      /** Tests that we always get a non-negative optimal size. */
      public void testOptimalSize() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top