Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 195 for index (0.04 sec)

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

        checkArgument(xValues.size() == yValues.size());
        PairedStatsAccumulator accumulator = new PairedStatsAccumulator();
        for (int index = 0; index < xValues.size(); index++) {
          accumulator.add(xValues.get(index), yValues.get(index));
        }
        return accumulator;
      }
    
      /**
       * Creates a {@link PairedStatsAccumulator} filled with the given lists of {@code x} and {@code y}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 09 22:49:56 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  2. 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
    - 24.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableList.java

      // The fake cast to E is safe because the creation methods only allow E's
      @Override
      @SuppressWarnings("unchecked")
      public E get(int index) {
        checkElementIndex(index, size);
        // requireNonNull is safe because we guarantee that the first `size` elements are non-null.
        return (E) requireNonNull(array[index]);
      }
    
      // TODO(lowasser): benchmark optimizations for equals() and see if they're worthwhile
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSortedMap.java

          action.accept(keyList.get(i), valueList.get(i));
        }
      }
    
      @Override
      @CheckForNull
      public V get(@CheckForNull Object key) {
        int index = keySet.indexOf(key);
        return (index == -1) ? null : valueList.get(index);
      }
    
      @Override
      boolean isPartialView() {
        return keySet.isPartialView() || valueList.isPartialView();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

        for (int i = 0; i < equalityGroup.length; i++) {
          Object element = equalityGroup[i];
          if (element == null) {
            throw new NullPointerException("at index " + i);
          }
          list.add(element);
        }
        equalityGroups.add(list);
        return this;
      }
    
      /** Run tests on equals method, throwing a failure on an invalid test */
      @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/JdkBackedImmutableSet.java

      JdkBackedImmutableSet(Set<?> delegate, ImmutableList<E> delegateList) {
        this.delegate = delegate;
        this.delegateList = delegateList;
      }
    
      @Override
      E get(int index) {
        return delegateList.get(index);
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return delegate.contains(object);
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. 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
    - 48K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/CollectionFuture.java

          values.add(null);
        }
    
        this.values = values;
      }
    
      @Override
      final void collectOneValue(int index, @ParametricNullness V returnValue) {
        List<@Nullable Present<V>> localValues = values;
        if (localValues != null) {
          localValues.set(index, new Present<>(returnValue));
        }
      }
    
      @Override
      final void handleAllCompleted() {
        List<@Nullable Present<V>> localValues = values;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactHashSet.java

        }
        int mask = hashTableMask();
        int index =
            CompactHashing.remove(
                object,
                /* value= */ null,
                mask,
                requireTable(),
                requireEntries(),
                requireElements(),
                /* values= */ null);
        if (index == -1) {
          return false;
        }
    
        moveLastEntry(index, mask);
        size--;
        incrementModCount();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java

      }
    
      @Override
      public ImmutableSortedSet<E> elementSet() {
        return forward.elementSet().descendingSet();
      }
    
      @Override
      Entry<E> getEntry(int index) {
        return forward.entrySet().asList().reverse().get(index);
      }
    
      @Override
      public ImmutableSortedMultiset<E> descendingMultiset() {
        return forward;
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top