Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 348 for Doubles (0.1 sec)

  1. guava/src/com/google/common/hash/Striped64.java

       * retryUpdate). Upon a collision, if the table size is less than
       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

        final double maxBurstSeconds;
    
        SmoothBursty(SleepingStopwatch stopwatch, double maxBurstSeconds) {
          super(stopwatch);
          this.maxBurstSeconds = maxBurstSeconds;
        }
    
        @Override
        void doSetRate(double permitsPerSecond, double stableIntervalMicros) {
          double oldMaxPermits = this.maxPermits;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. 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;
      }
    
      @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;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 04 04:06:35 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMappingAnd_horizontal() {
        double x1 = 1.2;
        double xDelta = 3.4;
        double y = 5.6;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y).and(x1 + xDelta, y);
        assertHorizontalLinearTransformation(transformation, y);
      }
    
      public void testMappingAnd_vertical() {
        double x = 1.2;
        double y1 = 3.4;
        double yDelta = 5.6;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMappingAnd_horizontal() {
        double x1 = 1.2;
        double xDelta = 3.4;
        double y = 5.6;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y).and(x1 + xDelta, y);
        assertHorizontalLinearTransformation(transformation, y);
      }
    
      public void testMappingAnd_vertical() {
        double x = 1.2;
        double y1 = 3.4;
        double yDelta = 5.6;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/StatsTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.lang.Double.NEGATIVE_INFINITY;
    import static java.lang.Double.NaN;
    import static java.lang.Double.POSITIVE_INFINITY;
    import static java.lang.Math.sqrt;
    import static java.util.Arrays.stream;
    import static org.junit.Assert.assertThrows;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/entity/GeoInfo.java

                                        }
                                        try {
                                            final double lat = Double.parseDouble(values[0]);
                                            final double lon = Double.parseDouble(values[1]);
                                            list.add(QueryBuilders.geoDistanceQuery(geoField).distance(distance).point(lat, lon));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      public static final class ImmutableDoubleArrayMiddleSubListAsListGenerator
          extends TestDoubleListGenerator {
        @Override
        protected List<Double> create(Double[] elements) {
          Double[] prefix = {Double.MIN_VALUE, Double.MAX_VALUE};
          Double[] suffix = {86.0, 99.0};
          Double[] all = concat(concat(prefix, elements), suffix);
          return makeArray(all).subArray(2, elements.length + 2).asList();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java

            }
    
            double scaledSize = (double) size / unit.bytes();
    
            if (unit == ScaleUnit.BYTE) {
                builder.append(Long.toString(size));
            } else if (scaledSize < 0.05d || scaledSize >= 10.0d) {
                builder.append(Long.toString(Math.round(scaledSize)));
            } else {
                builder.append(Double.toString(Math.round(scaledSize * 10d) / 10d));
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top