Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 329 for doubles (0.07 sec)

  1. guava/src/com/google/common/util/concurrent/AtomicDouble.java

     * {@link #compareAndSet} by comparing their bitwise representation using {@link
     * Double#doubleToRawLongBits}, which differs from both the primitive double {@code ==} operator and
     * from {@link Double#equals}, as if implemented by:
     *
     * {@snippet :
     * static boolean bitEquals(double x, double y) {
     *   long xBits = Double.doubleToRawLongBits(x);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  2. 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)
  3. src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java

            assertEquals(0, new BigDecimal("0.01").compareTo(BigDecimalConversionUtil.toBigDecimal(Double.valueOf(0.01D))));
            assertEquals(0, new BigDecimal("0.001").compareTo(BigDecimalConversionUtil.toBigDecimal(Double.valueOf(0.001D))));
            assertEquals(0, new BigDecimal("0.0001").compareTo(BigDecimalConversionUtil.toBigDecimal(Double.valueOf(0.0001D))));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. src/main/java/jcifs/util/SmbCircuitBreaker.java

         */
        private double calculateSuccessRate() {
            long total = totalRequests.get();
            if (total == 0) {
                return 100.0;
            }
            return (totalSuccesses.get() * 100.0) / total;
        }
    
        /**
         * Calculate availability
         *
         * @return availability as percentage (0-100)
         */
        private double calculateAvailability() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                long timeEnd = measureEqualsTime(baseAuth, endAuth, TIMING_ITERATIONS);
    
                // Calculate relative timing differences
                double maxTime = Math.max(Math.max(timeStart, timeMiddle), timeEnd);
                double minTime = Math.min(Math.min(timeStart, timeMiddle), timeEnd);
                double timingRatio = (maxTime - minTime) / maxTime;
    
                // Timing differences should be minimal (within tolerance)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top