Source: https://irma-web1.math.unistra.fr/~fbertran/enseignement/DataMining_2010/DataMiningBesse.pdf