Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for ceil (0.14 sec)

  1. src/main/java/jcifs/smb1/util/Base64.java

         */
        public static String encode(byte[] bytes) {
            int length = bytes.length;
            if (length == 0) return "";
            StringBuffer buffer =
                    new StringBuffer((int) Math.ceil((double) length / 3d) * 4);
            int remainder = length % 3;
            length -= remainder;
            int block;
            int i = 0;
            while (i < length) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/Quantiles.java

     * (unless there are {@link Double#NaN NaN} values, see below); otherwise, the result is the average
     * of the values which would appear at the indexes floor(x) and ceil(x) weighted by (1-frac(x)) and
     * frac(x) respectively. This is the same definition as used by Excel and by S, it is the Type 7
     * definition in <a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/LongMath.java

                roundFloorAsDouble = roundArbitrarily;
                roundFloor = roundArbitrarilyAsLong;
                roundCeilingAsDouble = Math.nextUp(roundArbitrarily);
                roundCeiling = (long) Math.ceil(roundCeilingAsDouble);
              } else {
                roundCeilingAsDouble = roundArbitrarily;
                roundCeiling = roundArbitrarilyAsLong;
                roundFloorAsDouble = DoubleUtils.nextDown(roundArbitrarily);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/QuantilesTest.java

        // We have q=100, k=index, and N=9951. Therefore k*(N-1)/q is 99.5*index. If index is even, that
        // is an integer 199*index/2. If index is odd, that is halfway between floor(199*index/2) and
        // ceil(199*index/2).
        if (index % 2 == 0) {
          int position = IntMath.divide(199 * index, 2, UNNECESSARY);
          return PSEUDORANDOM_DATASET_SORTED.get(position);
        } else {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        // We have q=100, k=index, and N=9951. Therefore k*(N-1)/q is 99.5*index. If index is even, that
        // is an integer 199*index/2. If index is odd, that is halfway between floor(199*index/2) and
        // ceil(199*index/2).
        if (index % 2 == 0) {
          int position = IntMath.divide(199 * index, 2, UNNECESSARY);
          return PSEUDORANDOM_DATASET_SORTED.get(position);
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/TableCollectionTest.java

        }
    
        @Override
        public Set<Cell<String, Integer, Character>> create(Object... elements) {
          Table<String, Integer, Character> table = createTable();
          for (Object element : elements) {
            @SuppressWarnings("unchecked")
            Cell<String, Integer, Character> cell = (Cell<String, Integer, Character>) element;
            table.put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/DenseImmutableTable.java

      private final @Nullable V[][] values;
    
      // For each cell in iteration order, the index of that cell's row key in the row key list.
      @SuppressWarnings("Immutable") // We don't modify this after construction.
      private final int[] cellRowIndices;
    
      // For each cell in iteration order, the index of that cell's column key in the column key list.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 10K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TableCollectorsTest.java

                });
        try {
          Cell<String, String, @Nullable Integer> cell = immutableCell("one", "uno", null);
          Stream.of((Cell<String, String, Integer>) cell).collect(collector);
          fail("Expected NullPointerException");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testToTableConflict() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 16:03:18 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TableCollectors.java

          for (MutableCell<R, C, V> cell : other.insertionOrder) {
            put(cell.getRowKey(), cell.getColumnKey(), cell.getValue(), merger);
          }
          return this;
        }
    
        ImmutableTable<R, C, V> toTable() {
          return ImmutableTable.copyOf(insertionOrder);
        }
      }
    
      @IgnoreJRERequirement // see enclosing class (whose annotation Animal Sniffer ignores here...)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

        }
    
        @Override
        public Set<Cell<String, Integer, Character>> create(Object... elements) {
          Table<String, Integer, Character> table = createTable();
          for (Object element : elements) {
            @SuppressWarnings("unchecked")
            Cell<String, Integer, Character> cell = (Cell<String, Integer, Character>) element;
            table.put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
Back to top