Compute the entropy of data as a running total.