Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for NAN (0.12 sec)

  1. android/guava/src/com/google/common/math/LinearTransformation.java

        }
    
        @Override
        public double slope() {
          return NaN;
        }
    
        @Override
        public double transform(double x) {
          return NaN;
        }
    
        @Override
        public LinearTransformation inverse() {
          return this;
        }
    
        @Override
        public String toString() {
          return "NaN";
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMapping_nanY1() {
        assertThrows(
            IllegalArgumentException.class, () -> LinearTransformation.mapping(1.2, Double.NaN));
      }
    
      public void testMappingAnd_nanX2() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(1.2, 3.4).and(Double.NaN, 7.8));
      }
    
    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)
  3. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMapping_nanY1() {
        assertThrows(
            IllegalArgumentException.class, () -> LinearTransformation.mapping(1.2, Double.NaN));
      }
    
      public void testMappingAnd_nanX2() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(1.2, 3.4).and(Double.NaN, 7.8));
      }
    
    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)
  4. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckNonNegative_nanFloat() {
        try {
          MathPreconditions.checkNonNegative("float", Float.NaN);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckNonNegative_zeroDouble() {
        MathPreconditions.checkNonNegative("double", 0d);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckNonNegative_nanFloat() {
        try {
          MathPreconditions.checkNonNegative("float", Float.NaN);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckNonNegative_zeroDouble() {
        MathPreconditions.checkNonNegative("double", 0d);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java

        assertEquals(0.0, DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY));
        assertThrows(IllegalArgumentException.class, () -> DoubleUtils.ensureNonNegative(Double.NaN));
      }
    
      public void testOneBits() {
        assertEquals(DoubleUtils.ONE_BITS, Double.doubleToRawLongBits(1.0));
      }
    
      private static void failFormat(String template, Object... args) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/DoubleUtilsTest.java

        assertEquals(0.0, DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY));
        assertThrows(IllegalArgumentException.class, () -> DoubleUtils.ensureNonNegative(Double.NaN));
      }
    
      public void testOneBits() {
        assertEquals(DoubleUtils.ONE_BITS, Double.doubleToRawLongBits(1.0));
      }
    
      private static void failFormat(String template, Object... args) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/MathPreconditions.java

        }
        return x;
      }
    
      @CanIgnoreReturnValue
      static double checkNonNegative(String role, double x) {
        if (!(x >= 0)) { // not x < 0, to work with NaN.
          throw new IllegalArgumentException(role + " (" + x + ") must be >= 0");
        }
        return x;
      }
    
      static void checkRoundingUnnecessary(boolean condition) {
        if (!condition) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.3K bytes
    - Viewed (0)
Back to top