Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for isNaN (0.02 sec)

  1. 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();
        assertTrue(Double.isNaN(DoubleMath.log2(Double.NEGATIVE_INFINITY)));
    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. guava/src/com/google/common/math/PairedStatsAccumulator.java

     */
    
    package com.google.common.math;
    
    import static com.google.common.base.Preconditions.checkState;
    import static java.lang.Double.NaN;
    import static java.lang.Double.isFinite;
    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.primitives.Doubles;
    
    /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/PairedStats.java

    import static com.google.common.base.Preconditions.checkState;
    import static java.lang.Double.NaN;
    import static java.lang.Double.doubleToLongBits;
    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.MoreObjects;
    import java.io.Serializable;
    import java.nio.ByteBuffer;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/StatsAccumulator.java

    import static com.google.common.math.DoubleUtils.ensureNonNegative;
    import static java.lang.Double.NaN;
    import static java.lang.Double.isFinite;
    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.util.Iterator;
    import java.util.stream.DoubleStream;
    import java.util.stream.IntStream;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/Stats.java

    import static java.lang.Double.NaN;
    import static java.lang.Double.doubleToLongBits;
    import static java.lang.Double.isFinite;
    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.MoreObjects;
    import java.io.Serializable;
    import java.nio.ByteBuffer;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(max(-0.0, 0.0)).isEqualTo(0.0);
        assertThat(max(0.0, -0.0)).isEqualTo(0.0);
        assertThat(max(NUMBERS)).isEqualTo(GREATEST);
        assertThat(Double.isNaN(max(VALUES))).isTrue();
      }
    
      @GwtIncompatible
      public void testMin_noArgs() {
        assertThrows(IllegalArgumentException.class, () -> min());
      }
    
      public void testMin() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/LinearTransformation.java

         * the transformation is vertical. (If it is zero, the transformation is horizontal.)
         */
        public LinearTransformation withSlope(double slope) {
          checkArgument(!Double.isNaN(slope));
          if (isFinite(slope)) {
            double yIntercept = y1 - x1 * slope;
            return new RegularLinearTransformation(slope, yIntercept);
          } else {
            return new VerticalLinearTransformation(x1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            // Test with special numeric values
            OptionalEntity<Double> nanOpt = OptionalUtil.ofNullable(Double.NaN);
            assertTrue(nanOpt.isPresent());
            assertTrue(Double.isNaN(nanOpt.get()));
    
            OptionalEntity<Double> infinityOpt = OptionalUtil.ofNullable(Double.POSITIVE_INFINITY);
            assertTrue(infinityOpt.isPresent());
            assertTrue(Double.isInfinite(infinityOpt.get()));
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(max(-0.0, 0.0)).isEqualTo(0.0);
        assertThat(max(0.0, -0.0)).isEqualTo(0.0);
        assertThat(max(NUMBERS)).isEqualTo(GREATEST);
        assertThat(Double.isNaN(max(VALUES))).isTrue();
      }
    
      @GwtIncompatible
      public void testMin_noArgs() {
        assertThrows(IllegalArgumentException.class, () -> min());
      }
    
      public void testMin() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(max(-0f, 0f)).isEqualTo(0f);
        assertThat(max(0f, -0f)).isEqualTo(0f);
        assertThat(max(NUMBERS)).isEqualTo(GREATEST);
        assertThat(Float.isNaN(max(VALUES))).isTrue();
      }
    
      @GwtIncompatible
      public void testMin_noArgs() {
        assertThrows(IllegalArgumentException.class, () -> min());
      }
    
      public void testMin() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.4K bytes
    - Viewed (0)
Back to top