Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_ITERABLE.mean());
        assertThat(ONE_VALUE_STATS.mean()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
        assertThat(Stats.of(POSITIVE_INFINITY).mean()).isPositiveInfinity();
        assertThat(Stats.of(NEGATIVE_INFINITY).mean()).isNegativeInfinity();
        assertThat(Stats.of(NaN).mean()).isNaN();
        assertThat(TWO_VALUES_STATS.mean()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
Back to top