Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 138 for predict (0.19 sec)

  1. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

        checkState(count() > 1);
        return sumOfProductsOfDeltas / (count() - 1);
      }
    
      /**
       * Returns the <a href="http://mathworld.wolfram.com/CorrelationCoefficient.html">Pearson's or
       * product-moment correlation coefficient</a> of the values. The count must greater than one, and
       * the {@code x} and {@code y} values must both have non-zero population variance (i.e. {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      private static void assertEvalsToTrue(Predicate<? super @Nullable Integer> predicate) {
        assertTrue(predicate.apply(0));
        assertTrue(predicate.apply(1));
        assertTrue(predicate.apply(null));
      }
    
      private static void assertEvalsToFalse(Predicate<? super @Nullable Integer> predicate) {
        assertFalse(predicate.apply(0));
        assertFalse(predicate.apply(1));
        assertFalse(predicate.apply(null));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Predicates.java

        <T extends @Nullable Object> Predicate<T> withNarrowedType() {
          return (Predicate<T>) this;
        }
      }
    
      /** @see Predicates#not(Predicate) */
      private static class NotPredicate<T extends @Nullable Object>
          implements Predicate<T>, Serializable {
        final Predicate<T> predicate;
    
        NotPredicate(Predicate<T> predicate) {
          this.predicate = checkNotNull(predicate);
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        }
      }
    
      static final Predicate<String> FILTER_KEYS =
          new Predicate<String>() {
            @Override
            public boolean apply(@Nullable String string) {
              return !"banana".equals(string) && !"eggplant".equals(string);
            }
          };
    
      static final Predicate<String> FILTER_VALUES =
          new Predicate<String>() {
            @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterators.java

       * {@code predicate}.
       *
       * @since 2.0
       */
      public static <T extends @Nullable Object> int indexOf(
          Iterator<T> iterator, Predicate<? super T> predicate) {
        checkNotNull(predicate, "predicate");
        for (int i = 0; iterator.hasNext(); i++) {
          T current = iterator.next();
          if (predicate.apply(current)) {
            return i;
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java

    import com.google.common.base.Predicate;
    import java.util.Collection;
    import java.util.Map;
    import java.util.Map.Entry;
    
    /**
     * Tests for Multimaps.filterEntries().asMap().
     *
     * @author Jared Levy
     */
    @GwtIncompatible(value = "untested")
    public class MultimapsFilterEntriesAsMapTest extends AbstractMultimapAsMapImplementsMapTest {
      private static final Predicate<Entry<String, Integer>> PREDICATE =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/FilteredEntrySetMultimap.java

        extends FilteredEntryMultimap<K, V> implements FilteredSetMultimap<K, V> {
    
      FilteredEntrySetMultimap(SetMultimap<K, V> unfiltered, Predicate<? super Entry<K, V>> predicate) {
        super(unfiltered, predicate);
      }
    
      @Override
      public SetMultimap<K, V> unfiltered() {
        return (SetMultimap<K, V>) unfiltered;
      }
    
      @Override
      public Set<V> get(@ParametricNullness K key) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        FluentIterable<String> iterable = FluentIterable.<String>from(list);
        Predicate<String> predicate = Predicates.equalTo("pants");
    
        assertFalse(iterable.anyMatch(predicate));
        list.add("cool");
        assertFalse(iterable.anyMatch(predicate));
        list.add("pants");
        assertTrue(iterable.anyMatch(predicate));
      }
    
      public void testAllMatch() {
        List<String> list = Lists.newArrayList();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/FluentIterable.java

       *
       * <p><b>{@code Stream} equivalent:</b> {@link Stream#anyMatch} (same).
       */
      public final boolean anyMatch(Predicate<? super E> predicate) {
        return Iterables.any(getDelegate(), predicate);
      }
    
      /**
       * Returns {@code true} if every element in this fluent iterable satisfies the predicate. If this
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/FilteredKeySetMultimap.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Predicate;
    import java.util.Map.Entry;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterKeys(SetMultimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 2.2K bytes
    - Viewed (0)
Back to top