Doubt about this code in function autoCorrelate:
Since "buf" is not changed in this loop:
for (var j=0; j<SIZE-i; j++)
c[i] = c[i] + buf[j]buf[j+i];
'buf[j]buf[j+i]' should always be the same result, so every element in the 'c' array should be equal, Am I understanding it wrong? Looking forward to your reply!
Doubt about this code in function autoCorrelate: Since "buf" is not changed in this loop: for (var j=0; j<SIZE-i; j++) c[i] = c[i] + buf[j]buf[j+i]; 'buf[j]buf[j+i]' should always be the same result, so every element in the 'c' array should be equal, Am I understanding it wrong? Looking forward to your reply!