The Shape of Data and Probability Measures