make pDistHist compatible with computeStatsSlidingWindow