Source: https://math.unice.fr/~diener/StatMass/Cours07_16.pdf