Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 278 for Doubles (0.13 sec)

  1. 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)
  2. src/main/java/org/codelibs/core/collection/ArrayUtil.java

        /**
         * Returns a new array with the specified double value appended to the end of the double array.
         *
         * @param array
         *            the array. Must not be {@literal null}
         * @param value
         *            the value to add
         * @return a new array with the value appended
         */
        public static double[] add(final double[] array, final double value) {
            assertArgumentNotNull("array", array);
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 41.5K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/math/DoubleMathRoundingBenchmark.java

     *
     * @author Louis Wasserman
     */
    @NullUnmarked
    public class DoubleMathRoundingBenchmark {
      private static final double[] doubleInIntRange = new double[ARRAY_SIZE];
      private static final double[] doubleInLongRange = new double[ARRAY_SIZE];
      private static final double[] positiveDoubles = new double[ARRAY_SIZE];
    
      @Param({"DOWN", "UP", "FLOOR", "CEILING", "HALF_EVEN", "HALF_UP", "HALF_DOWN"})
      RoundingMode mode;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

            assertEquals(Float.parseFloat(expected), DocumentUtil.getValue(doc, "key1", Float.class).floatValue());
            assertEquals(Double.parseDouble(expected), DocumentUtil.getValue(doc, "key1", Double.class).doubleValue());
    
            assertNull(DocumentUtil.getValue(doc, "key2", String.class));
        }
    
        public void test_strings() {
            Map<String, Object> doc = new HashMap<>();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/BloomFilter.java

       * #create(Funnel, int, double)}, or smaller. If it is significantly higher, it is usually the
       * case that too many elements (more than expected) have been put in the {@code BloomFilter},
       * degenerating it.
       *
       * @since 14.0 (since 11.0 as expectedFalsePositiveProbability())
       */
      public double expectedFpp() {
        return Math.pow((double) bits.bitCount() / bitSize(), numHashFunctions);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

      public void testCreateFromSortedSetMultimap() {
        SortedSetMultimap<Double, Double> tree = TreeMultimap.create(KEY_COMPARATOR, VALUE_COMPARATOR);
        tree.put(1.0, 2.0);
        tree.put(2.0, 3.0);
        tree.put(3.0, 4.0);
        tree.put(4.0, 5.0);
    
        SortedSetMultimap<Double, Double> sorted = Multimaps.unmodifiableSortedSetMultimap(tree);
        TreeMultimap<Double, Double> copyFromSorted = TreeMultimap.create(sorted);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        in.put(Number.class, 0);
        in.put(Double.class, Math.PI);
        ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in);
        assertEquals(2, map.size());
    
        Number zero = map.getInstance(Number.class);
        assertEquals(0, zero);
    
        Double pi = map.getInstance(Double.class);
        assertThat(pi).isEqualTo(Math.PI);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ComparisonChain.java

       */
      public abstract ComparisonChain compare(float left, float right);
    
      /**
       * Compares two {@code double} values as specified by {@link Double#compare}, <i>if</i> the result
       * of this comparison chain has not already been determined.
       */
      public abstract ComparisonChain compare(double left, double right);
    
      /**
       * Discouraged synonym for {@link #compareFalseFirst}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

      private static final String S2 = "44 one million";
      private static final String S3 = "Lowly laundry lefties";
      private static final String S4 = "89273487U#*&#";
      private static final Double D0 = 9.234d;
      private static final Double D1 = -1.2e55;
    
      @Benchmark
      int hashString_2(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(S0, S1);
        }
        return dummy;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

          writeChar(s.charAt(i));
        }
      }
    
      /**
       * Writes a {@code double} as specified by {@link DataOutputStream#writeDouble(double)}, except
       * using little-endian byte order.
       *
       * @throws IOException if an I/O error occurs
       */
      @Override
      public void writeDouble(double v) throws IOException {
        writeLong(Double.doubleToLongBits(v));
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top