Source: http://polaris.imag.fr/arnaud.legrand/teaching/2017/RICM4_EP_CMTD.pdf