Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 601 for double (0.19 sec)

  1. guava-tests/test/com/google/common/primitives/DoublesTest.java

                    },
                    new double[] {(double) 2, (double) 3, (double) 4}))
            .isEqualTo(2);
        assertThat(
                Doubles.indexOf(
                    new double[] {
                      (double) 2, (double) 2, (double) 3, (double) 4, (double) 2, (double) 3, (double) 4
                    },
                    new double[] {(double) 2, (double) 3, (double) 4}))
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

                    },
                    new double[] {(double) 2, (double) 3, (double) 4}))
            .isEqualTo(2);
        assertThat(
                Doubles.indexOf(
                    new double[] {
                      (double) 2, (double) 2, (double) 3, (double) 4, (double) 2, (double) 3, (double) 4
                    },
                    new double[] {(double) 2, (double) 3, (double) 4}))
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

     * Double#doubleToRawLongBits}, which differs from both the primitive double {@code ==} operator and
     * from {@link Double#equals}, as if implemented by:
     *
     * <pre>{@code
     * static boolean bitEquals(double x, double y) {
     *   long xBits = Double.doubleToRawLongBits(x);
     *   long yBits = Double.doubleToRawLongBits(y);
     *   return xBits == yBits;
     * }
     * }</pre>
     *
     * @author Doug Lea
     * @author Martin Buchholz
     * @since 11.0
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/StatsTesting.java

      static final double MANY_VALUES_MAX = 555.555;
      static final double MANY_VALUES_MIN = -44.44;
    
      // Doubles which will overflow if summed:
      static final double[] LARGE_VALUES = {Double.MAX_VALUE, Double.MAX_VALUE / 2.0};
      static final double LARGE_VALUES_MEAN = 0.75 * Double.MAX_VALUE;
    
      static final ImmutableList<Double> OTHER_MANY_VALUES =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

        BigDecimal maxDoubleAsBD = new BigDecimal(Double.MAX_VALUE);
        new RoundToDoubleTester(maxDoubleAsBD).setExpectation(Double.MAX_VALUE, values()).test();
      }
    
      public void testRoundToDouble_maxDoublePlusOne() {
        BigDecimal maxDoubleAsBD = new BigDecimal(Double.MAX_VALUE).add(BigDecimal.ONE);
        new RoundToDoubleTester(maxDoubleAsBD)
            .setExpectation(Double.MAX_VALUE, DOWN, FLOOR, HALF_EVEN, HALF_UP, HALF_DOWN)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/QuantilesTest.java

       * each other or identical non-finite values.
       */
      private static final Correspondence<Double, Double> QUANTILE_CORRESPONDENCE =
          Correspondence.from(
              new BinaryPredicate<Double, Double>() {
                @Override
                public boolean apply(@Nullable Double actual, @Nullable Double expected) {
                  // Test for equality to allow non-finite values to match; otherwise, use the finite
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/QuantilesTest.java

       * each other or identical non-finite values.
       */
      private static final Correspondence<Double, Double> QUANTILE_CORRESPONDENCE =
          Correspondence.from(
              new BinaryPredicate<Double, Double>() {
                @Override
                public boolean apply(@Nullable Double actual, @Nullable Double expected) {
                  // Test for equality to allow non-finite values to match; otherwise, use the finite
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java

        for (double positiveValue : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          assertEquals(positiveValue, DoubleUtils.ensureNonNegative(positiveValue));
          assertEquals(0.0, DoubleUtils.ensureNonNegative(-positiveValue));
        }
        assertEquals(Double.POSITIVE_INFINITY, DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY));
        assertEquals(0.0, DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/MathTesting.java

      }
    
      static final ImmutableSet<Double> INTEGRAL_DOUBLE_CANDIDATES;
      static final ImmutableSet<Double> FRACTIONAL_DOUBLE_CANDIDATES;
      static final Iterable<Double> INFINITIES =
          Doubles.asList(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY);
      static final Iterable<Double> FINITE_DOUBLE_CANDIDATES;
      static final Iterable<Double> POSITIVE_FINITE_DOUBLE_CANDIDATES;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/Encdec.java

    
        /*
         * Encode and decode doubles
         */
    
        public static int enc_doublele ( double d, byte[] dst, int di ) {
            return enc_uint64le(Double.doubleToLongBits(d), dst, di);
        }
    
    
        public static int enc_doublebe ( double d, byte[] dst, int di ) {
            return enc_uint64be(Double.doubleToLongBits(d), dst, di);
        }
    
    
        public static double dec_doublele ( byte[] src, int si ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11K bytes
    - Viewed (0)
Back to top