Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 132 for index (0.04 sec)

  1. android/guava-tests/test/com/google/common/math/QuantilesTest.java

      }
    
      private static double expectedLargeDatasetPercentile(int index) {
        // 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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/DoubleMath.java

        long count = 1;
        double mean = checkFinite(values[0]);
        for (int index = 1; index < values.length; ++index) {
          checkFinite(values[index]);
          count++;
          // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
          mean += (values[index] - mean) / count;
        }
        return mean;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/DoubleMath.java

        long count = 1;
        double mean = checkFinite(values[0]);
        for (int index = 1; index < values.length; ++index) {
          checkFinite(values[index]);
          count++;
          // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
          mean += (values[index] - mean) / count;
        }
        return mean;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/Stats.java

        checkArgument(values.length > 0);
        double mean = values[0];
        for (int index = 1; index < values.length; index++) {
          double value = values[index];
          if (isFinite(value) && isFinite(mean)) {
            // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15)
            mean += (value - mean) / (index + 1);
          } else {
            mean = calculateNewMeanNonFinite(mean, value);
          }
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 22K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

        @ParametricNullness final K key;
        int index;
    
        EntryForKey(int index) {
          // The cast is safe because we call forEntry only for indexes that contain entries.
          this.key = uncheckedCastNullableTToT(keys[index]);
          this.index = index;
        }
    
        void updateIndex() {
          if (index == ABSENT || index > size || !Objects.equal(keys[index], key)) {
            index = findEntryByKey(key);
          }
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 36.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        @ParametricNullness
        public V get(int index) {
          refreshIfEmpty();
          return getListDelegate().get(index);
        }
    
        @Override
        @ParametricNullness
        public V set(int index, @ParametricNullness V element) {
          refreshIfEmpty();
          return getListDelegate().set(index, element);
        }
    
        @Override
        public void add(int index, @ParametricNullness V element) {
          refreshIfEmpty();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 46.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSet.java

          int mask = hashTable.length - 1;
          for (int i = i0; i - i0 < maxRunBeforeFallback; i++) {
            int index = i & mask;
            Object tableEntry = hashTable[index];
            if (tableEntry == null) {
              addDedupedElement(e);
              hashTable[index] = e;
              hashCode += eHash;
              ensureTableCapacity(distinct); // rebuilds table if necessary
              return this;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          }
          queue[index] = x;
          return index;
        }
    
        /**
         * Returns the index of minimum value between {@code index} and {@code index + len}, or {@code
         * -1} if {@code index} is greater than {@code size}.
         */
        int findMin(int index, int len) {
          if (index >= size) {
            return -1;
          }
          checkState(index > 0);
          int limit = Math.min(index, size - len) + len;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableMultiset.java

      }
    
      abstract Entry<E> getEntry(int index);
    
      @WeakOuter
      private final class EntrySet extends IndexedImmutableSet<Entry<E>> {
        @Override
        boolean isPartialView() {
          return ImmutableMultiset.this.isPartialView();
        }
    
        @Override
        Entry<E> get(int index) {
          return getEntry(index);
        }
    
        @Override
        public int size() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AggregateFuture.java

       * cancelled. For details on when this is called, see {@link #collectOneValue}.
       */
      private void collectValueFromNonCancelledFuture(int index, Future<? extends InputT> future) {
        try {
          // We get the result, even if collectOneValue is a no-op, so that we can fail fast.
          collectOneValue(index, getDone(future));
        } catch (ExecutionException e) {
          handleException(e.getCause());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top