Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testOptimalHashes (0.07 seconds)

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

        tester.testAllPublicStaticMethods(BloomFilter.class);
      }
    
      /** Tests that we never get an optimal hashes number of zero. */
      public void testOptimalHashes() {
        for (int n = 1; n < 1000; n++) {
          for (double p = 0.1; p > 1e-10; p /= 10) {
            assertThat(BloomFilter.optimalNumOfHashFunctions(p)).isGreaterThan(0);
          }
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 22.1K bytes
    - Click Count (0)
Back to Top