Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for approximateElementCount (0.36 sec)

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

      }
    
      /**
       * Asserts that {@link BloomFilter#approximateElementCount} is within 1 percent of the expected
       * value.
       */
      private static void assertApproximateElementCountGuess(BloomFilter<?> bf, int sizeGuess) {
        assertThat(bf.approximateElementCount()).isAtLeast((long) (sizeGuess * 0.99));
        assertThat(bf.approximateElementCount()).isAtMost((long) (sizeGuess * 1.01));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/BloomFilter.java

       * {@code expectedInsertions} that was used when constructing the filter.
       *
       * @since 22.0
       */
      public long approximateElementCount() {
        long bitSize = bits.bitSize();
        long bitCount = bits.bitCount();
    
        /**
         * Each insertion is expected to reduce the # of clear bits by a factor of
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/BloomFilter.java

       * {@code expectedInsertions} that was used when constructing the filter.
       *
       * @since 22.0
       */
      public long approximateElementCount() {
        long bitSize = bits.bitSize();
        long bitCount = bits.bitCount();
    
        /**
         * Each insertion is expected to reduce the # of clear bits by a factor of
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top