Lines Matching refs:sum
30 * A state object for collecting statistics such as count, min, max, sum, and
52 * maximum, sum, and average of their weights.
64 private double sum;
65 private double sumCompensation; // Low order bits of sum
66 private double simpleSum; // Used to compute right sum for non-finite inputs
71 * Construct an empty instance with zero count, zero sum,
101 sumWithCompensation(other.sum);
113 double velvel = sum + tmp; // Little wolf of rounding error
114 sumCompensation = (velvel - sum) - tmp;
115 sum = velvel;
128 * Returns the sum of values recorded, or zero if no values have been
131 * If any recorded value is a NaN or the sum is at any point a NaN
132 * then the sum will be NaN.
134 * <p> The value of a floating-point sum is a function both of the
142 * numerical sum compared to a simple summation of {@code double}
148 * @return the sum of values, or zero if none
151 // Better error bounds to add both terms as the final sum
152 double tmp = sum + sumCompensation;
154 // If the compensated sum is spuriously NaN from
195 * If any recorded value is a NaN or the sum is at any point a NaN
203 * numerical sum} used to compute the average.
224 "%s{count=%d, sum=%f, min=%f, average=%f, max=%f}",