Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Truncation (0.04 sec)

  1. android/guava/src/com/google/common/hash/BloomFilter.java

       */
      @VisibleForTesting
      static int optimalNumOfHashFunctions(double p) {
        // -log(p) / log(2), ensuring the result is rounded to avoid truncation.
        return max(1, (int) Math.round(-Math.log(p) / LOG_TWO));
      }
    
      /**
       * Computes m (total bits of Bloom filter) which is expected to achieve, for the specified
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top