- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for asIterable (0.06 seconds)
-
guava-tests/test/com/google/common/math/StatsTesting.java
static class ManyValues { private final ImmutableList<Double> values; ManyValues(double[] values) { this.values = ImmutableList.copyOf(Doubles.asList(values)); } ImmutableList<Double> asIterable() { return values; } double[] asArray() { return Doubles.toArray(values); } boolean hasAnyPositiveInfinity() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 24K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
static class ManyValues { private final ImmutableList<Double> values; ManyValues(double[] values) { this.values = ImmutableList.copyOf(Doubles.asList(values)); } ImmutableList<Double> asIterable() { return values; } double[] asArray() { return Doubles.toArray(values); } boolean hasAnyPositiveInfinity() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 24K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
StatsAccumulator accumulator = new StatsAccumulator(); StatsAccumulator accumulatorByAddAllStats = new StatsAccumulator(); accumulator.addAll(values.asIterable()); for (double value : values.asIterable()) { accumulatorByAddAllStats.addAll(Stats.of(value)); } double mean = accumulator.mean(); double meanByAddAllStats = accumulatorByAddAllStats.mean();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 37.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java
for (ManyValues values : ALL_MANY_VALUES) { PairedStatsAccumulator accumulator = createFilledPairedStatsAccumulator(values.asIterable(), OTHER_MANY_VALUES); PairedStatsAccumulator accumulatorByAddAllPartitionedPairedStats = createPartitionedFilledPairedStatsAccumulator(values.asIterable(), OTHER_MANY_VALUES, 2); double populationCovariance = accumulator.populationCovariance();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 23.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
StatsAccumulator accumulator = new StatsAccumulator(); StatsAccumulator accumulatorByAddAllStats = new StatsAccumulator(); accumulator.addAll(values.asIterable()); for (double value : values.asIterable()) { accumulatorByAddAllStats.addAll(Stats.of(value)); } double mean = accumulator.mean(); double meanByAddAllStats = accumulatorByAddAllStats.mean();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 37.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTest.java
// finite and non-finite values: for (ManyValues values : ALL_MANY_VALUES) { double populationVariance = Stats.of(values.asIterable()).populationVariance(); if (values.hasAnyNonFinite()) { assertWithMessage("population variance of %s", values).that(populationVariance).isNaN(); } else {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 33.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/PairedStatsTest.java
// For datasets of many double values, we test many combinations of finite and non-finite // x-values: for (ManyValues values : ALL_MANY_VALUES) { PairedStats stats = createPairedStatsOf(values.asIterable(), OTHER_MANY_VALUES); double populationCovariance = stats.populationCovariance(); if (values.hasAnyNonFinite()) { assertWithMessage("population covariance of %s", values).that(populationCovariance).isNaN();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 14.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/PairedStatsTest.java
// For datasets of many double values, we test many combinations of finite and non-finite // x-values: for (ManyValues values : ALL_MANY_VALUES) { PairedStats stats = createPairedStatsOf(values.asIterable(), OTHER_MANY_VALUES); double populationCovariance = stats.populationCovariance(); if (values.hasAnyNonFinite()) { assertWithMessage("population covariance of %s", values).that(populationCovariance).isNaN();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 14.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/FluentIterableTest.java
* returns a {@link FluentIterable} of elements of an anonymous type whose supertypes are the <a * href="https://docs.oracle.com/javase/specs/jls/se25/html/jls-4.html#jls-4.9">intersection</a> * of the supertypes of {@code A} and the supertypes of {@code B}. */ public void testConcatIntersectionType() { Iterable<A> aIterable = ImmutableList.of();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 31.2K bytes - Click Count (0)