Calculated mesh probabilities using numpy histogram