Calculate the harmonic mean of a dataset. The harmonic mean is commonly used to find the average of rates or ratios, such as speed or density.