Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 890 for Values (0.47 sec)

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

              + (555.555 - MANY_VALUES_MEAN) * (555.555 - MANY_VALUES_MEAN)
              + (-2.2 - MANY_VALUES_MEAN) * (-2.2 - MANY_VALUES_MEAN);
      static final double MANY_VALUES_MAX = 555.555;
      static final double MANY_VALUES_MIN = -44.44;
    
      // Doubles which will overflow if summed:
      static final double[] LARGE_VALUES = {Double.MAX_VALUE, Double.MAX_VALUE / 2.0};
      static final double LARGE_VALUES_MEAN = 0.75 * Double.MAX_VALUE;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java

          @Override
          double mean(double[] values) {
            double sum = 0.0;
            for (double value : values) {
              sum += value;
            }
            return sum / values.length;
          }
        },
        KAHAN {
          @Override
          double mean(double[] values) {
            double sum = 0.0;
            double c = 0.0;
            for (double value : values) {
              double y = value - c;
              double t = sum + y;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

      private static final double[] VALUES = {
        Double.NEGATIVE_INFINITY,
        -Double.MAX_VALUE,
        (double) Long.MIN_VALUE,
        (double) Integer.MIN_VALUE,
        -Math.PI,
        -1.0,
        -Double.MIN_VALUE,
        -0.0,
        +0.0,
        Double.MIN_VALUE,
        1.0,
        Math.PI,
        (double) Integer.MAX_VALUE,
        (double) Long.MAX_VALUE,
        Double.MAX_VALUE,
        Double.POSITIVE_INFINITY,
        Double.NaN,
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 10.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          Collection<Object> values = cache.asMap().values();
          assertFalse(values.remove(null));
          assertFalse(values.remove(6));
          assertFalse(values.remove(-6));
          assertFalse(values.removeAll(asList(null, 0, 15, 1500)));
          assertFalse(values.retainAll(asList(null, 0, 15, 1500)));
          checkEmpty(values);
          checkEmpty(cache);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

      @Override
      protected void assertGet(K key, V... values) {
        assertGet(key, Arrays.asList(values));
      }
    
      @Override
      protected void assertGet(K key, Collection<? extends V> values) {
        assertEqualInOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
          assertEqualInOrder(values, multimap().asMap().get(key));
          assertFalse(multimap().isEmpty());
        } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SetOperationsTest.java

                      }
                    })
                .named("set - set")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.ALLOWS_NULL_VALUES,
                    CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
                      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java

          List<V> values = multimap().get(k);
          List<V> expectedValues = copyToList(values);
    
          assertTrue(multimap().put(k, v));
          expectedValues.add(v);
          assertGet(k, expectedValues);
          assertEquals(v, values.get(values.size() - 1));
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ListMultimap.java

    /**
     * A {@code Multimap} that can hold duplicate key-value pairs and that maintains the insertion
     * ordering of values for a given key. See the {@link Multimap} documentation for information common
     * to all multimaps.
     *
     * <p>The {@link #get}, {@link #removeAll}, and {@link #replaceValues} methods each return a {@link
     * List} of values. Though the method signature doesn't say so explicitly, the map returned by
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

          assertEquals(WARMUP_SIZE, values.size());
          for (int i = WARMUP_MIN; i < WARMUP_MAX; i++) {
            Object value = warmed.get(i - WARMUP_MIN).getValue();
            assertTrue(values.contains(value));
            assertTrue(values.remove(value));
            assertFalse(values.remove(value));
            assertFalse(values.contains(value));
          }
          checkEmpty(values);
          checkEmpty(cache);
        }
      }
    
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Comparators.java

            o -> o.orElse(null), Comparator.nullsLast(valueComparator));
      }
    
      /**
       * Returns the minimum of the two values. If the values compare as 0, the first is returned.
       *
       * <p>The recommended solution for finding the {@code minimum} of some values depends on the type
       * of your data and the number of elements you have. Read more in the Guava User Guide article on
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 10.7K bytes
    - Viewed (0)
Back to top