Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 45 for POSITIVE_INFINITY (0.18 sec)

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

        assertVerticalLinearTransformation(transformation, x);
      }
    
      public void testMapping_infiniteX1() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(Double.POSITIVE_INFINITY, 3.4));
      }
    
      public void testMapping_infiniteY1() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(1.2, Double.NEGATIVE_INFINITY));
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

        assertVerticalLinearTransformation(transformation, x);
      }
    
      public void testMapping_infiniteX1() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(Double.POSITIVE_INFINITY, 3.4));
      }
    
      public void testMapping_infiniteY1() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(1.2, Double.NEGATIVE_INFINITY));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/DoubleMath.java

       * {@code n == 0}, or {@code n!}, or {@link Double#POSITIVE_INFINITY} if {@code n! >
       * Double.MAX_VALUE}.
       *
       * <p>The result is within 1 ulp of the true value.
       *
       * @throws IllegalArgumentException if {@code n < 0}
       */
      public static double factorial(int n) {
        checkNonNegative("n", n);
        if (n > MAX_FACTORIAL) {
          return Double.POSITIVE_INFINITY;
        } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/PairedStats.java

       * times, due to numerical errors.
       *
       * <h3>Non-finite values</h3>
       *
       * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link
       * Double#NEGATIVE_INFINITY}, or {@link Double#NaN}) then the result is {@link Double#NaN}.
       *
       * @throws IllegalStateException if the dataset is empty
       */
      public double populationCovariance() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  5. 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)
  6. android/guava/src/com/google/common/math/DoubleUtils.java

    package com.google.common.math;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static java.lang.Double.MAX_EXPONENT;
    import static java.lang.Double.MIN_EXPONENT;
    import static java.lang.Double.POSITIVE_INFINITY;
    import static java.lang.Double.doubleToRawLongBits;
    import static java.lang.Double.isNaN;
    import static java.lang.Double.longBitsToDouble;
    import static java.lang.Math.getExponent;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:37:52 GMT 2021
    - 5.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/Quantiles.java

          if (upper == POSITIVE_INFINITY) {
            // Return NaN when lower == NEGATIVE_INFINITY and upper == POSITIVE_INFINITY:
            return NaN;
          }
          // Return NEGATIVE_INFINITY when NEGATIVE_INFINITY == lower <= upper < POSITIVE_INFINITY:
          return NEGATIVE_INFINITY;
        }
        if (upper == POSITIVE_INFINITY) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top