Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for isWithin (0.03 sec)

  1. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        assertThat(DoubleMath.mean(11, -22, 44, -88)).isWithin(1.0e-10).of(-13.75);
        assertThat(DoubleMath.mean(11)).isWithin(1.0e-10).of(11.0);
      }
    
      @GwtIncompatible // DoubleMath.mean
      @SuppressWarnings("deprecation") // test of deprecated method
      public void testMean_longVarargs() {
        assertThat(DoubleMath.mean(11L, -22L, 44L, -88L)).isWithin(1.0e-10).of(-13.75);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.0);
        stopwatch.sleepMillis(400);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.0);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.0);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.2);
      }
    
      public void testOneSecondBurst() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.0);
        stopwatch.sleepMillis(400);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.0);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.0);
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.2);
      }
    
      public void testOneSecondBurst() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        assertEquals(knownNumberOfFalsePositives, numFpp);
        double expectedReportedFpp = (double) knownNumberOfFalsePositives / numInsertions;
        double actualReportedFpp = bf.expectedFpp();
        assertThat(actualReportedFpp).isWithin(0.00015).of(expectedReportedFpp);
      }
    
      public void testCreateAndCheckBloomFilterWithKnownFalsePositives64() {
        int numInsertions = 1000000;
        BloomFilter<String> bf =
            BloomFilter.create(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        assertEquals(knownNumberOfFalsePositives, numFpp);
        double expectedReportedFpp = (double) knownNumberOfFalsePositives / numInsertions;
        double actualReportedFpp = bf.expectedFpp();
        assertThat(actualReportedFpp).isWithin(0.00015).of(expectedReportedFpp);
      }
    
      public void testCreateAndCheckBloomFilterWithKnownFalsePositives64() {
        int numInsertions = 1000000;
        BloomFilter<String> bf =
            BloomFilter.create(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashTestUtils.java

          }
          // measure probability and assert it's within margin of error
          for (int j = 0; j < hashBits; j++) {
            double prob = (double) diff[j] / (double) (diff[j] + same[j]);
            assertThat(prob).isWithin(epsilon).of(0.50d);
          }
        }
      }
    
      /**
       * Test for 2-bit characteristics. A characteristic is a delta in the input which is repeated in
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
Back to top