Correctly compute mean/min/max on histogram intervals larger than the index interval