One-dimensional histogram calculation.