Source: https://people.cs.vt.edu/karpatne/teaching/5525-s21/docs/chap2_data.pdf