Histogram functional