Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for isPositiveInfinity (0.73 sec)

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

        }
      }
    
      public void testFactorialTooHigh() {
        assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 1)).isPositiveInfinity();
        assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 20)).isPositiveInfinity();
      }
    
      public void testFactorialNegative() {
        for (int n : NEGATIVE_INTEGER_CANDIDATES) {
    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/math/StatsAccumulatorTest.java

          } else if (values.hasAnyPositiveInfinity()) {
            assertWithMessage("mean of " + values).that(mean).isPositiveInfinity();
            assertWithMessage("mean by addAll(Stats) of " + values)
                .that(meanByAddAllStats)
                .isPositiveInfinity();
          } else if (values.hasAnyNegativeInfinity()) {
            assertWithMessage("mean of " + values).that(mean).isNegativeInfinity();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java

          assertThat(DoubleUtils.ensureNonNegative(-positiveValue)).isEqualTo(0.0);
        }
        assertThat(DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY)).isPositiveInfinity();
        assertThat(DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY)).isEqualTo(0.0);
        assertThrows(IllegalArgumentException.class, () -> DoubleUtils.ensureNonNegative(Double.NaN));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        // interpolating between 5.0 and POSITIVE_INFINITY
        assertThat(Quantiles.scale(10).index(9).compute(ONE_TO_FIVE_AND_POSITIVE_INFINITY))
            .isPositiveInfinity();
      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_negativeInfinity() {
        assertThat(
                Quantiles.scale(10)
                    .indexes(0, 1, 2, 8, 9, 10)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/QuantilesTest.java

        // interpolating between 5.0 and POSITIVE_INFINITY
        assertThat(Quantiles.scale(10).index(9).compute(ONE_TO_FIVE_AND_POSITIVE_INFINITY))
            .isPositiveInfinity();
      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_negativeInfinity() {
        assertThat(
                Quantiles.scale(10)
                    .indexes(0, 1, 2, 8, 9, 10)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top