Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 278 for Doubles (0.03 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt

              if (headerCount + 1 > dynamicTable.size) { // Need to grow the dynamic table.
                val doubled = arrayOfNulls<Header>(dynamicTable.size * 2)
                System.arraycopy(dynamicTable, 0, doubled, dynamicTable.size, dynamicTable.size)
                nextHeaderIndex = dynamicTable.size - 1
                dynamicTable = doubled
              }
              index = nextHeaderIndex--
              dynamicTable[index] = entry
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top