- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 231 for Mean (0.02 seconds)
-
android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java
for (int i = 1; i < values.length; i++) { mean = mean + (values[i] - mean) / (i + 1); } return mean; } }; abstract double mean(double[] values); } static class MeanAndVariance { private final double mean; private final double variance; MeanAndVariance(double mean, double variance) { this.mean = mean; this.variance = variance; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 4.7K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/math/StatsBenchmark.java
for (int i = 1; i < values.length; i++) { mean = mean + (values[i] - mean) / (i + 1); } return mean; } }; abstract double mean(double[] values); } static class MeanAndVariance { private final double mean; private final double variance; MeanAndVariance(double mean, double variance) { this.mean = mean; this.variance = variance; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava/src/com/google/common/math/Stats.java
mean += (value - mean) / (index + 1); } else { mean = calculateNewMeanNonFinite(mean, value); } } return mean; } /** * Returns the <a href="http://en.wikipedia.org/wiki/Arithmetic_mean">arithmetic mean</a> of the * values. The count must be non-zero. * * <p>The definition of the mean is the same as {@link Stats#mean}. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 25.1K bytes - Click Count (0) -
android/guava/src/com/google/common/math/DoubleMath.java
*/ @Deprecated public static double mean(long... values) { checkArgument(values.length > 0, "Cannot take mean of 0 values"); long count = 1; double mean = values[0]; for (int index = 1; index < values.length; ++index) { count++; // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15) mean += (values[index] - mean) / count; } return mean; } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 19.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTest.java
} else if (values.hasAnyNegativeInfinity()) { assertWithMessage("mean of %s", values).that(mean).isNegativeInfinity(); } else { assertWithMessage("mean of %s", values) .that(mean) .isWithin(ALLOWED_ERROR) .of(MANY_VALUES_MEAN); } }
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/src/com/google/common/math/StatsAccumulator.java
} } else { count++; if (isFinite(value) && isFinite(mean)) { // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15) and (16) double delta = value - mean; mean += delta / count; sumOfSquaresOfDeltas += delta * (value - mean); } else { mean = calculateNewMeanNonFinite(mean, value); sumOfSquaresOfDeltas = NaN; } min = Math.min(min, value);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 16:36:11 GMT 2025 - 15.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java
twoValuesAccumulator.xStats().mean(), twoValuesAccumulator.yStats().mean(), twoValuesAccumulator.xStats().populationVariance(), twoValuesAccumulator.populationCovariance()); assertDiagonalLinearTransformation( twoValuesAccumulatorByAddAllPartitionedPairedStats.leastSquaresFit(), twoValuesAccumulatorByAddAllPartitionedPairedStats.xStats().mean(),
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
accumulatorByAddAllStats.addAll(Stats.of(value)); } double mean = accumulator.mean(); double meanByAddAllStats = accumulatorByAddAllStats.mean(); if (values.hasAnyNaN()) { assertWithMessage("mean of %s", values).that(mean).isNaN(); assertWithMessage("mean by addAll(Stats) of %s", values).that(meanByAddAllStats).isNaN();
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) -
android/guava-tests/test/com/google/common/math/PairedStatsTest.java
fit, stats.xStats().mean(), stats.yStats().mean(), stats.xStats().populationVariance(), stats.populationCovariance()); } } assertHorizontalLinearTransformation( HORIZONTAL_VALUES_PAIRED_STATS.leastSquaresFit(), HORIZONTAL_VALUES_PAIRED_STATS.yStats().mean()); assertVerticalLinearTransformation(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
fit, stats.xStats().mean(), stats.yStats().mean(), stats.xStats().populationVariance(), stats.populationCovariance()); } } assertHorizontalLinearTransformation( HORIZONTAL_VALUES_PAIRED_STATS.leastSquaresFit(), HORIZONTAL_VALUES_PAIRED_STATS.yStats().mean()); assertVerticalLinearTransformation(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)