- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 279 for doubles (0.04 sec)
-
guava/src/com/google/common/math/BigDecimalMath.java
* infinite {@code double} values are considered infinitely far away. For example, 2^2000 is not * representable as a double, but {@code roundToDouble(BigDecimal.valueOf(2).pow(2000), HALF_UP)} * will return {@code Double.MAX_VALUE}, not {@code Double.POSITIVE_INFINITY}. * * <p>For the case of {@link RoundingMode#HALF_EVEN}, this implementation uses the IEEE 754
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/BloomFilterTest.java
double expectedReportedFpp = (double) knownNumberOfFalsePositives / numInsertions; double actualReportedFpp = bf.expectedFpp(); assertThat(actualReportedFpp).isWithin(0.00033).of(expectedReportedFpp); } /** Sanity checking with many combinations of false positive rates and expected insertions */ public void testBasic() { for (double fpr = 0.0000001; fpr < 0.1; fpr *= 10) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 22K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/InternersBenchmark.java
for (int i = 0; i < reps; i++) { String unused = interner.intern(Double.toHexString(Math.random())); } return reps; } @CanIgnoreReturnValue @Benchmark int strongInterner(int reps) { Interner<String> interner = Interners.newStrongInterner(); for (int i = 0; i < reps; i++) { String unused = interner.intern(Double.toHexString(Math.random())); } return reps; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Feb 11 19:03:19 UTC 2025 - 1.6K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedLong.java
} /** * Returns the value of this {@code UnsignedLong} as a {@code double}, analogous to a widening * primitive conversion from {@code long} to {@code double}, and correctly rounded. */ @Override public double doubleValue() { if (value >= 0) { return (double) value; } // The top bit is set, which means that the double value is going to come from the top 53 bits.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 8.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java
for (double positiveValue : POSITIVE_FINITE_DOUBLE_CANDIDATES) { assertThat(DoubleUtils.ensureNonNegative(positiveValue)).isEqualTo(positiveValue); assertThat(DoubleUtils.ensureNonNegative(-positiveValue)).isEqualTo(0.0); } assertThat(DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY)).isPositiveInfinity(); assertThat(DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY)).isEqualTo(0.0);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java
ImmutableSet.of(REFERENCE_ALGORITHM)) .immutableCopy(); private double[] dataset; @Override protected void setUp() { dataset = new double[DATASET_SIZE]; for (int i = 0; i < DATASET_SIZE; i++) { dataset[i] = rng.nextDouble(); } } public void testSingleQuantile_median() { double referenceValue = REFERENCE_ALGORITHM.singleQuantile(1, 2, dataset.clone());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
Random random = new Random(); int warmupPermits = 10; double[] coldFactorsToTest = {2.0, 3.0, 10.0}; double[] qpsToTest = {4.0, 2.0, 1.0, 0.5, 0.1}; for (int trial = 0; trial < 100; trial++) { for (double coldFactor : coldFactorsToTest) { for (double qps : qpsToTest) { // If warmupPermits = maxPermits - thresholdPermits then
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
Random random = new Random(); int warmupPermits = 10; double[] coldFactorsToTest = {2.0, 3.0, 10.0}; double[] qpsToTest = {4.0, 2.0, 1.0, 0.5, 0.1}; for (int trial = 0; trial < 100; trial++) { for (double coldFactor : coldFactorsToTest) { for (double qps : qpsToTest) { // If warmupPermits = maxPermits - thresholdPermits then
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
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) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
return Float.intBitsToFloat(readInt()); } /** * Reads a {@code double} as specified by {@link DataInputStream#readDouble()}, except using * little-endian byte order. * * @return the next eight bytes of the input stream, interpreted as a {@code double} in * little-endian byte order * @throws IOException if an I/O error occurs */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 7.3K bytes - Viewed (0)