merge the new update into existing instance
Source
void mergeAdd(ValueUpdate newUpdate) { value = newUpdate.value; ts = newUpdate.ts; status = newUpdate.status; count += newUpdate.count; if (!newUpdate.sum.isNaN) { if (sum == sum) { sum += newUpdate.sum; } else { sum = newUpdate.sum; } } if (min != min || newUpdate.min < min) { min = newUpdate.min; } if (max != max || newUpdate.max > max) { max = newUpdate.max; } }