Commit 0b387478 authored by Enrico Glerean's avatar Enrico Glerean

Estimation of degrees of freedom from a time series, see Appendix B from...

Estimation of degrees of freedom from a time series, see Appendix B from http://becs.aalto.fi/bml/pdf/AlluriNeuroimage2012.pdf
parent a6830b85
......@@ -2,9 +2,9 @@ function df=bramila_autocorr(x,y)
% See appendix B in http://www.sciencedirect.com/science/article/pii/S1053811911013000
% Usage df=bramila_autocorr(x,y)
% x = time series (column vector)
% y = second time series (column vector)
% y = second time series (column vector)
% df = estimated degrees of freedom
% For autocorrelation just run df=bramila_autocorr(x,x)
% For autocorrelation just run df=bramila_autocorr(x,x)
N=length(x);
j=round(N/5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment