- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for doubleValue (0.16 sec)
-
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java
at.set(x); assertEquals((float) x, at.floatValue()); } } /** doubleValue returns current value. */ public void testDoubleValue() { AtomicDouble at = new AtomicDouble(); assertEquals(0.0d, at.doubleValue()); for (double x : VALUES) { at.set(x); assertBitEquals(x, at.doubleValue()); } } /** compareAndSet treats +0.0 and -0.0 as distinct values */
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 10.2K bytes - Viewed (0) -
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) -
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) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
.multiply(BigInteger.valueOf(3L)) .divide(BigInteger.valueOf(4L)) .doubleValue(); static final double LARGE_INTEGER_VALUES_POPULATION_VARIANCE = BigInteger.valueOf(Integer.MAX_VALUE) .multiply(BigInteger.valueOf(Integer.MAX_VALUE)) .divide(BigInteger.valueOf(16L)) .doubleValue(); static final ImmutableList<Long> LONG_MANY_VALUES =
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 09 22:49:56 GMT 2023 - 22.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsTesting.java
.multiply(BigInteger.valueOf(3L)) .divide(BigInteger.valueOf(4L)) .doubleValue(); static final double LARGE_INTEGER_VALUES_POPULATION_VARIANCE = BigInteger.valueOf(Integer.MAX_VALUE) .multiply(BigInteger.valueOf(Integer.MAX_VALUE)) .divide(BigInteger.valueOf(16L)) .doubleValue(); static final ImmutableList<Long> LONG_MANY_VALUES =
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Nov 09 22:49:56 GMT 2023 - 23.8K bytes - Viewed (0) -
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) -
android/guava/src/com/google/common/math/StatsAccumulator.java
for (Number value : values) { add(value.doubleValue()); } } /** * Adds the given values to the dataset. * * @param values a series of values, which will be converted to {@code double} values (this may * cause loss of precision) */ public void addAll(Iterator<? extends Number> values) { while (values.hasNext()) { add(values.next().doubleValue()); } } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 17:02:53 GMT 2023 - 14.2K bytes - Viewed (0) -
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) -
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) -
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)