Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 85 for infinity (0.21 sec)

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

      }
    
      public void testLog2Zero() {
        assertEquals(Double.NEGATIVE_INFINITY, DoubleMath.log2(0.0));
        assertEquals(Double.NEGATIVE_INFINITY, DoubleMath.log2(-0.0));
      }
    
      public void testLog2NaNInfinity() {
        assertEquals(Double.POSITIVE_INFINITY, DoubleMath.log2(Double.POSITIVE_INFINITY));
        assertTrue(Double.isNaN(DoubleMath.log2(Double.NEGATIVE_INFINITY)));
        assertTrue(Double.isNaN(DoubleMath.log2(Double.NaN)));
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/StatsTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.lang.Double.NEGATIVE_INFINITY;
    import static java.lang.Double.NaN;
    import static java.lang.Double.POSITIVE_INFINITY;
    import static java.lang.Math.sqrt;
    import static java.util.Arrays.stream;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 32.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/StatsTesting.java

          for (double first : ImmutableList.of(1.1, POSITIVE_INFINITY, NEGATIVE_INFINITY, NaN)) {
            values[0] = first;
            values[1] = -44.44;
            for (double third : ImmutableList.of(33.33, POSITIVE_INFINITY, NEGATIVE_INFINITY, NaN)) {
              values[2] = third;
              values[3] = 555.555;
              for (double fifth : ImmutableList.of(-2.2, POSITIVE_INFINITY, NEGATIVE_INFINITY, NaN)) {
                values[4] = fifth;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/BigDecimalMathTest.java

        new RoundToDoubleTester(maxDoubleAsBD)
            .setExpectation(Double.MAX_VALUE, DOWN, FLOOR, HALF_EVEN, HALF_UP, HALF_DOWN)
            .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING)
            .roundUnnecessaryShouldThrow()
            .test();
      }
    
      public void testRoundToDouble_wayTooBig() {
        BigDecimal bi = BigDecimal.valueOf(2).pow(2 * Double.MAX_EXPONENT);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/QuantilesTest.java

                2, POSITIVE_INFINITY,
                8, POSITIVE_INFINITY,
                9, POSITIVE_INFINITY, // interpolating between two POSITIVE_INFINITY values
                10, POSITIVE_INFINITY);
      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_nan() {
        assertThat(Quantiles.scale(10).indexes(0, 1, 2, 8, 9, 10).compute(ONE_TO_FIVE_AND_NAN))
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/QuantilesTest.java

                2, POSITIVE_INFINITY,
                8, POSITIVE_INFINITY,
                9, POSITIVE_INFINITY, // interpolating between two POSITIVE_INFINITY values
                10, POSITIVE_INFINITY);
      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_nan() {
        assertThat(Quantiles.scale(10).indexes(0, 1, 2, 8, 9, 10).compute(ONE_TO_FIVE_AND_NAN))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertEvents("R0.00", "R1.00", "R1.00");
    
        limiter.setRate(Double.POSITIVE_INFINITY);
        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
        assertEvents("R1.00", "R0.00", "R0.00");
      }
    
      public void testInfinity_WarmUpTimeElapsed() {
        RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, 10, SECONDS, 3.0, stopwatch);
        stopwatch.instant += 1000000;
        limiter.setRate(1.0);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertEvents("R0.00", "R1.00", "R1.00");
    
        limiter.setRate(Double.POSITIVE_INFINITY);
        limiter.acquire();
        limiter.acquire();
        limiter.acquire();
        assertEvents("R1.00", "R0.00", "R0.00");
      }
    
      public void testInfinity_WarmUpTimeElapsed() {
        RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, 10, SECONDS, 3.0, stopwatch);
        stopwatch.instant += 1000000;
        limiter.setRate(1.0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/PairedStatsTest.java

        assertThat(ONE_VALUE_PAIRED_STATS.populationCovariance()).isWithin(0.0).of(0.0);
        assertThat(createSingleStats(Double.POSITIVE_INFINITY, 1.23).populationCovariance()).isNaN();
        assertThat(createSingleStats(Double.NEGATIVE_INFINITY, 1.23).populationCovariance()).isNaN();
        assertThat(createSingleStats(Double.NaN, 1.23).populationCovariance()).isNaN();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

        assertThat(ONE_VALUE_PAIRED_STATS.populationCovariance()).isWithin(0.0).of(0.0);
        assertThat(createSingleStats(Double.POSITIVE_INFINITY, 1.23).populationCovariance()).isNaN();
        assertThat(createSingleStats(Double.NEGATIVE_INFINITY, 1.23).populationCovariance()).isNaN();
        assertThat(createSingleStats(Double.NaN, 1.23).populationCovariance()).isNaN();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
Back to top