- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for accumulator (0.14 sec)
-
android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
public void testCountOverflow_doesNotThrow() { StatsAccumulator accumulator = new StatsAccumulator(); accumulator.add(ONE_VALUE); for (int power = 1; power < Long.SIZE - 1; power++) { accumulator.addAll(accumulator.snapshot()); } // Should overflow without throwing. accumulator.addAll(accumulator.snapshot()); assertThat(accumulator.count()).isLessThan(0L); } public void testMean() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 36.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
public void testCountOverflow_doesNotThrow() { StatsAccumulator accumulator = new StatsAccumulator(); accumulator.add(ONE_VALUE); for (int power = 1; power < Long.SIZE - 1; power++) { accumulator.addAll(accumulator.snapshot()); } // Should overflow without throwing. accumulator.addAll(accumulator.snapshot()); assertThat(accumulator.count()).isLessThan(0L); } public void testMean() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 36.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java
PairedStatsAccumulator accumulator = new PairedStatsAccumulator(); accumulator.add(ONE_VALUE, OTHER_ONE_VALUE); for (int power = 1; power < Long.SIZE - 1; power++) { accumulator.addAll(accumulator.snapshot()); } // Should overflow without throwing. accumulator.addAll(accumulator.snapshot()); assertThat(accumulator.count()).isLessThan(0L); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 21:17:33 UTC 2024 - 23.3K bytes - Viewed (0) -
guava/src/com/google/common/math/Stats.java
StatsAccumulator accumulator = new StatsAccumulator(); accumulator.addAll(values); return accumulator.snapshot(); } /** * Returns statistics over a dataset containing the given values. * * @param values a series of values */ public static Stats of(double... values) { StatsAccumulator accumulator = new StatsAccumulator(); accumulator.addAll(values);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 24.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java
PairedStatsAccumulator accumulator = new PairedStatsAccumulator(); accumulator.add(ONE_VALUE, OTHER_ONE_VALUE); for (int power = 1; power < Long.SIZE - 1; power++) { accumulator.addAll(accumulator.snapshot()); } // Should overflow without throwing. accumulator.addAll(accumulator.snapshot()); assertThat(accumulator.count()).isLessThan(0L); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 21:17:33 UTC 2024 - 23.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SetsTest.java
adder.accept(accumulator, SomeEnum.A); adder.accept(accumulator, SomeEnum.B); ImmutableSet<SomeEnum> set = collector.finisher().apply(accumulator); assertThat(set).containsExactly(SomeEnum.A, SomeEnum.B); // Subsequent manual manipulation of the accumulator must not affect the state of the built set adder.accept(accumulator, SomeEnum.C); assertThat(set).containsExactly(SomeEnum.A, SomeEnum.B); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 48.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsTest.java
// For datasets of many double values created from an accumulator snapshot, we test many // combinations of finite and non-finite values: for (ManyValues values : ALL_MANY_VALUES) { StatsAccumulator accumulator = new StatsAccumulator(); accumulator.addAll(values.asIterable()); double min = accumulator.snapshot().min(); if (values.hasAnyNaN()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 33.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
* function to the current and given values. * * @param i the index to update * @param x the update value * @param accumulatorFunction the accumulator function * @return the previous value * @since 31.1 */ @CanIgnoreReturnValue public final double getAndAccumulate(int i, double x, DoubleBinaryOperator accumulatorFunction) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 17:55:55 UTC 2024 - 10.3K bytes - Viewed (0) -
cmd/utils.go
// If it is passed ["aaaa", "bbbb"], it returns ["aaaa", "{aaaa:.*}", "bbbb", "{bbbb:.*}"] func restQueries(keys ...string) []string { var accumulator []string for _, key := range keys { accumulator = append(accumulator, key, "{"+key+":.*}") } return accumulator } // Suffix returns the longest common suffix of the provided strings func lcpSuffix(strs []string) string { return lcp(strs, false) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 31.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CollectCollectors.java
if (set == null) { return ImmutableSet.of(); } ImmutableSet<E> ret = ImmutableEnumSet.asImmutable(set); set = null; // subsequent manual manipulation of the accumulator mustn't affect ret return ret; } } @GwtIncompatible @SuppressWarnings({"rawtypes", "unchecked"}) static <E extends Comparable<? super E>>
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 17.1K bytes - Viewed (0)