Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for isNegativeInfinity (0.74 seconds)

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

        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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 33.4K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

                .isPositiveInfinity();
          } else if (values.hasAnyNegativeInfinity()) {
            assertWithMessage("mean of %s", values).that(mean).isNegativeInfinity();
            assertWithMessage("mean by addAll(Stats) of %s", values)
                .that(meanByAddAllStats)
                .isNegativeInfinity();
          } else {
            assertWithMessage("mean of %s", values)
                .that(mean)
                .isWithin(ALLOWED_ERROR)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

                .isPositiveInfinity();
          } else if (values.hasAnyNegativeInfinity()) {
            assertWithMessage("mean of %s", values).that(mean).isNegativeInfinity();
            assertWithMessage("mean by addAll(Stats) of %s", values)
                .that(meanByAddAllStats)
                .isNegativeInfinity();
          } else {
            assertWithMessage("mean of %s", values)
                .that(mean)
                .isWithin(ALLOWED_ERROR)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

          assertTrue(Double.isNaN(DoubleMath.log2(-d)));
        }
      }
    
      public void testLog2Zero() {
        assertThat(DoubleMath.log2(0.0)).isNegativeInfinity();
        assertThat(DoubleMath.log2(-0.0)).isNegativeInfinity();
      }
    
      public void testLog2NaNInfinity() {
        assertThat(DoubleMath.log2(Double.POSITIVE_INFINITY)).isPositiveInfinity();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 03 16:20:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/math/DoubleMathTest.java

          assertTrue(Double.isNaN(DoubleMath.log2(-d)));
        }
      }
    
      public void testLog2Zero() {
        assertThat(DoubleMath.log2(0.0)).isNegativeInfinity();
        assertThat(DoubleMath.log2(-0.0)).isNegativeInfinity();
      }
    
      public void testLog2NaNInfinity() {
        assertThat(DoubleMath.log2(Double.POSITIVE_INFINITY)).isPositiveInfinity();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 03 16:20:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        // interpolating between NEGATIVE_INFINITY and 1.0
        assertThat(Quantiles.scale(10).index(1).compute(ONE_TO_FIVE_AND_NEGATIVE_INFINITY))
            .isNegativeInfinity();
      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_bothInfinities() {
        assertThat(
                Quantiles.scale(10)
                    .indexes(0, 1, 2, 8, 9, 10)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/math/QuantilesTest.java

        // interpolating between NEGATIVE_INFINITY and 1.0
        assertThat(Quantiles.scale(10).index(1).compute(ONE_TO_FIVE_AND_NEGATIVE_INFINITY))
            .isNegativeInfinity();
      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_bothInfinities() {
        assertThat(
                Quantiles.scale(10)
                    .indexes(0, 1, 2, 8, 9, 10)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 29.9K bytes
    - Click Count (0)
Back to Top