Text this: Diaphony, a measure of uniform distribution, and the Patterson function.