Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for isWithin (0.04 sec)

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

        assertThat(transformation.isVertical()).isFalse();
        assertThat(transformation.isHorizontal()).isFalse();
        assertThat(transformation.slope()).isWithin(ALLOWED_ERROR).of(slope);
        // Note that we cannot test the actual mapping of points, as the results will be unreliable due
        // to loss of precision with this value of the slope.
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. 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)
  3. 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