Source: https://r-libre.teluq.ca/1472/1/Cas_ISavard_final_2014.02.25.pdf