Home
last modified time | relevance | path

Searched refs:TWO_VALUES_MEAN (Results 1 – 6 of 6) sorted by relevance

/external/guava/android/guava-tests/test/com/google/common/math/
DStatsTesting.java52 static final double TWO_VALUES_MEAN = (12.34 - 56.78) / 2; field in StatsTesting
54 (12.34 - TWO_VALUES_MEAN) * (12.34 - TWO_VALUES_MEAN)
55 + (-56.78 - TWO_VALUES_MEAN) * (-56.78 - TWO_VALUES_MEAN);
62 (12.34 - TWO_VALUES_MEAN) * (123.456 - OTHER_TWO_VALUES_MEAN)
63 + (-56.78 - TWO_VALUES_MEAN) * (-789.012 - OTHER_TWO_VALUES_MEAN);
DStatsAccumulatorTest.java43 import static com.google.common.math.StatsTesting.TWO_VALUES_MEAN;
208 assertThat(twoValuesAccumulator.mean()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN); in testMean()
211 .of(TWO_VALUES_MEAN); in testMean()
288 assertThat(twoValuesAccumulator.sum()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN * 2); in testSum()
291 .of(TWO_VALUES_MEAN * 2); in testSum()
DStatsTest.java62 import static com.google.common.math.StatsTesting.TWO_VALUES_MEAN;
121 assertThat(TWO_VALUES_STATS.mean()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN); in testMean()
171 assertThat(TWO_VALUES_STATS.sum()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN * 2); in testSum()
522 assertThat(Stats.meanOf(TWO_VALUES)).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN); in testMeanOf()
/external/guava/guava-tests/test/com/google/common/math/
DStatsTesting.java53 static final double TWO_VALUES_MEAN = (12.34 - 56.78) / 2; field in StatsTesting
55 (12.34 - TWO_VALUES_MEAN) * (12.34 - TWO_VALUES_MEAN)
56 + (-56.78 - TWO_VALUES_MEAN) * (-56.78 - TWO_VALUES_MEAN);
63 (12.34 - TWO_VALUES_MEAN) * (123.456 - OTHER_TWO_VALUES_MEAN)
64 + (-56.78 - TWO_VALUES_MEAN) * (-789.012 - OTHER_TWO_VALUES_MEAN);
DStatsAccumulatorTest.java48 import static com.google.common.math.StatsTesting.TWO_VALUES_MEAN;
215 assertThat(twoValuesAccumulator.mean()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN); in testMean()
218 .of(TWO_VALUES_MEAN); in testMean()
295 assertThat(twoValuesAccumulator.sum()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN * 2); in testSum()
298 .of(TWO_VALUES_MEAN * 2); in testSum()
DStatsTest.java68 import static com.google.common.math.StatsTesting.TWO_VALUES_MEAN;
131 assertThat(TWO_VALUES_STATS.mean()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN); in testMean()
181 assertThat(TWO_VALUES_STATS.sum()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN * 2); in testSum()
587 assertThat(Stats.meanOf(TWO_VALUES)).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN); in testMeanOf()