Commit e5aeec49133ba19a381291ad6dcad1164d621c61

Authored by bmarechal
1 parent 8ca6bc2fe9
Exists in master

use real part

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -328,7 +328,7 @@
328 328 fd2=diff(fa2);
329 329 % calculate two-sample variance for this tau
330 330 M=length(fa);
331   - sm(k)=sqrt(0.5/(M-1)*(real(sum(fd.*fd2))));
  331 + sm(k)=sqrt(0.5/(M-1)*abs(real(sum(fd.*fd2))));
332 332  
333 333 % estimate error bars
334 334 sme(k)=sm(k)/sqrt(M+1);