Proximity measures for data described by histograms