Computing measures of centrality from a Histogram