1% acf = LagCorrelationsFromTrace(trace, K)
3% Returns the lag-k autocorrelation of a trace.
7% trace : vector of doubles
10% The number of lags to compute
14% acf : column vector of doubles
15% The lag-k autocorrelation function of the trace up to
18function acf = LagCorrelationsFromTrace (trace, K)
29 acf(i) = (dot(trace(1:end-i),trace(i+1:end)) / (length(trace)-i) - m^2) / v;