/libcore/luni/src/test/java/libcore/java/util/ |
D | LongSummaryStatisticsTest.java | 29 assertEquals(0, lss.getSum()); in test_empty() 56 assertEquals(0, lss.getSum()); in test_defaults_when_count_is_zero() 65 assertEquals(25, lss.getSum()); in test_filled_constructor() 77 assertEquals(100L, lss.getSum()); in test_accept() 80 assertEquals(350L, lss.getSum()); in test_accept() 85 assertEquals(400L, lss.getSum()); in test_accept() 88 assertEquals(600L, lss.getSum()); in test_accept() 97 assertEquals(118L, lssCombined.getSum()); in test_combine() 110 assertEquals(104L, lss1.getSum()); in test_getSum()
|
D | IntSummaryStatisticsTest.java | 47 assertEquals(0, iss.getSum()); in test_defaults_when_count_is_zero() 56 assertEquals(25, iss.getSum()); in test_filled_constructor() 64 assertEquals(0, iss.getSum()); in test_empty() 74 assertEquals(5, iss.getSum()); in test_accept() 77 assertEquals(15, iss.getSum()); in test_accept() 86 assertEquals(118, issCombined.getSum()); in test_combine() 99 assertEquals(104, iss1.getSum()); in test_getSum()
|
D | DoubleSummaryStatisticsTest.java | 33 assertEquals(0.0d, dss.getSum()); in test_empty() 43 assertEquals(100.5d, dss.getSum()); in test_accept() 46 assertEquals(145.5d, dss.getSum()); in test_accept() 54 assertEquals(164.4d, dssCombined.getSum()); in test_combine() 67 assertEquals(148.4, dss1.getSum()); in test_getSum() 70 assertEquals(Double.NaN, dss1.getSum()); in test_getSum() 123 assertEquals(30d, dss.getSum()); in test_constructorLongDoubleDoubleDouble_takesArgumentsIntoAccountWhenCountIsNonZero() 132 assertEquals(0d, dss.getSum()); in test_constructorLongDoubleDoubleDouble_ignoresMinMaxSum_whenCountIsZero()
|
/libcore/ojluni/src/test/java/util/DoubleSummaryStatistics/ |
D | NegativeCompensation.java | 72 double absErrN = Math.abs(res - stat2.getSum()); in testErrorComparision() 73 double absErr = Math.abs(stat0.getSum() - stat2.getSum()); in testErrorComparision()
|
/libcore/ojluni/src/main/java/java/util/ |
D | IntSummaryStatistics.java | 164 public final long getSum() { in getSum() method in IntSummaryStatistics 195 return getCount() > 0 ? (double) getSum() / getCount() : 0.0d; in getAverage() 209 getSum(), in toString()
|
D | LongSummaryStatistics.java | 176 public final long getSum() { in getSum() method in LongSummaryStatistics 207 return getCount() > 0 ? (double) getSum() / getCount() : 0.0d; in getAverage() 221 getSum(), in toString()
|
D | DoubleSummaryStatistics.java | 244 public final double getSum() { in getSum() method in DoubleSummaryStatistics 299 return getCount() > 0 ? getSum() / getCount() : 0.0d; in getAverage() 313 getSum(), in toString()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | CollectAndSummaryStatisticsTest.java | 106 …ntSummaryStatistics(original.getCount(), original.getMin(), original.getMax(), original.getSum())); in testIntStatistics() 110 assertEquals(stats.getSum(), countTo(1000).stream().mapToInt(i -> i).sum()); in testIntStatistics() 111 assertEquals(stats.getAverage(), (double) stats.getSum() / stats.getCount()); in testIntStatistics() 140 …ngSummaryStatistics(original.getCount(), original.getMin(), original.getMax(), original.getSum())); in testLongStatistics() 144 assertEquals(stats.getSum(), (long) countTo(1000).stream().mapToInt(i -> i).sum()); in testLongStatistics() 145 assertEquals(stats.getAverage(), (double) stats.getSum() / stats.getCount()); in testLongStatistics() 173 …leSummaryStatistics(original.getCount(), original.getMin(), original.getMax(), original.getSum())); in testDoubleStatistics() 177 assertEquals(stats.getSum(), (double) countTo(1000).stream().mapToInt(i -> i).sum()); in testDoubleStatistics() 178 assertEquals(stats.getAverage(), stats.getSum() / stats.getCount()); in testDoubleStatistics()
|
D | SummaryStatisticsTest.java | 54 assertEquals(stats.getSum(), countTo(1000).stream().mapToInt(i -> i).sum()); in testIntStatistics() 69 assertEquals(stats.getSum(), (long) countTo(1000).stream().mapToInt(i -> i).sum()); in testLongStatistics() 84 assertEquals(stats.getSum(), (double) countTo(1000).stream().mapToInt(i -> i).sum()); in testDoubleStatistics()
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 85 failures += compareUlpDifference(expectedSum, stats.getSum(), 3); in testForCompenstation() 134 failures += compareUlpDifference(expected, stats.getSum(), 0); in testNonfiniteSum()
|
/libcore/api/ |
D | current.txt | 13808 method public final double getSum(); 14109 method public final long getSum(); 14361 method public final long getSum();
|