Source: https://www.lptmc.jussieu.fr/user/barbi/ENSEIGNEMENT/M2/auto-corr-1_scilab.pdf