sumWith method
Sum this statistics fields with other
fields.
Implementation
Statistics<num> sumWith(Statistics other) {
return Statistics(
length + other.length,
min + other.min,
max + other.max,
medianLow: medianLow + other.medianLow,
medianHigh: medianHigh + other.medianHigh,
sum: sum + other.sum,
squaresSum: squaresSum + other.squaresSum,
mean: mean + other.mean,
standardDeviation:
(standardDeviation + other.standardDeviation).ifNaN(0.0),
);
}