Searched refs:TWO_VALUES_MEAN (Results 1 – 6 of 6) sorted by relevance
52 static final double TWO_VALUES_MEAN = (12.34 - 56.78) / 2; field in StatsTesting54 (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);
43 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()
62 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()
53 static final double TWO_VALUES_MEAN = (12.34 - 56.78) / 2; field in StatsTesting55 (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);
48 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()
68 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()