Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for doubleValue (0.21 sec)

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

          UnsignedLong unsignedValue = UnsignedLong.fromLongBits(value);
          assertWithMessage("Double value of " + unsignedValue)
              .that(unsignedValue.doubleValue())
              .isWithin(0.0)
              .of(unsignedValue.bigIntegerValue().doubleValue());
        }
      }
    
      public void testPlus() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          UnsignedLong unsignedValue = UnsignedLong.fromLongBits(value);
          assertWithMessage("Double value of " + unsignedValue)
              .that(unsignedValue.doubleValue())
              .isWithin(0.0)
              .of(unsignedValue.bigIntegerValue().doubleValue());
        }
      }
    
      public void testPlus() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/DoubleMath.java

        checkArgument(values.hasNext(), "Cannot take mean of 0 values");
        long count = 1;
        double mean = checkFinite(values.next().doubleValue());
        while (values.hasNext()) {
          double value = checkFinite(values.next().doubleValue());
          count++;
          // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
          mean += (value - mean) / count;
        }
        return mean;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

      }
    
      public void testConstantsEverySixteenthFactorial() {
        for (int i = 0, n = 0; n <= DoubleMath.MAX_FACTORIAL; i++, n += 16) {
          assertEquals(
              BigIntegerMath.factorial(n).doubleValue(), DoubleMath.everySixteenthFactorial[i]);
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
      public void testRoundIntegralDoubleToInt() {
        for (double d : INTEGRAL_DOUBLE_CANDIDATES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/Stats.java

       */
      public static double meanOf(Iterator<? extends Number> values) {
        checkArgument(values.hasNext());
        long count = 1;
        double mean = values.next().doubleValue();
        while (values.hasNext()) {
          double value = values.next().doubleValue();
          count++;
          if (isFinite(value) && isFinite(mean)) {
            // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
            mean += (value - mean) / count;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Doubles.java

        reverse(array, fromIndex, toIndex);
      }
    
      /**
       * Returns an array containing each value of {@code collection}, converted to a {@code double}
       * value in the manner of {@link Number#doubleValue}.
       *
       * <p>Elements are copied from the argument collection as if by {@code collection.toArray()}.
       * Calling this method is as thread-safe as calling that method.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/DoubleMathTest.java

      }
    
      public void testConstantsEverySixteenthFactorial() {
        for (int i = 0, n = 0; n <= DoubleMath.MAX_FACTORIAL; i++, n += 16) {
          assertEquals(
              BigIntegerMath.factorial(n).doubleValue(), DoubleMath.everySixteenthFactorial[i]);
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
      public void testRoundIntegralDoubleToInt() {
        for (double d : INTEGRAL_DOUBLE_CANDIDATES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

            is ErrorValue.ErrorValueWithMessage -> KtConstantValue.KtErrorConstantValue(message, sourcePsi = null)
            is BooleanValue -> KtConstantValue.KtBooleanConstantValue(value, sourcePsi = null)
            is DoubleValue -> KtConstantValue.KtDoubleConstantValue(value, sourcePsi = null)
            is FloatValue -> KtConstantValue.KtFloatConstantValue(value, sourcePsi = null)
            is NullValue -> KtConstantValue.KtNullConstantValue(sourcePsi = null)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/OrderingTest.java

        assertSame(a, numberOrdering.min(a, b));
      }
    
      private static class NumberOrdering extends Ordering<Number> {
        @Override
        public int compare(Number a, Number b) {
          return ((Double) a.doubleValue()).compareTo(b.doubleValue());
        }
    
        @Override
        public int hashCode() {
          return NumberOrdering.class.hashCode();
        }
    
        @Override
        public boolean equals(@Nullable Object other) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        assertSame(a, numberOrdering.min(a, b));
      }
    
      private static class NumberOrdering extends Ordering<Number> {
        @Override
        public int compare(Number a, Number b) {
          return ((Double) a.doubleValue()).compareTo(b.doubleValue());
        }
    
        @Override
        public int hashCode() {
          return NumberOrdering.class.hashCode();
        }
    
        @Override
        public boolean equals(@Nullable Object other) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
Back to top