Commit 9be29b9f authored by Alberto Ramos's avatar Alberto Ramos

Corrected error of autoCF and window for covariances

parent 125abd54
......@@ -316,7 +316,7 @@ function uwerror(a::uwreal, ws::wspace, wpm::Dict{Int64,Vector{Float64}})
if (a.cfd[j].gamm[1] != 0.0)
@inbounds for i in 1:nt
is = max(1, i-iw-2) + 1
ie = i + iw-1
ie = is + iw-1
@inbounds for k in is:ie
if (k < nt+1)
cont = -2.0*a.cfd[j].gamm[k]*a.cfd[j].gamm[i]/a.cfd[j].gamm[1]^2
......@@ -465,7 +465,7 @@ function cov(a::Vector{uwreal}, ws::wspace, wpm::Dict{Int64,Vector{Float64}})
for k in 1:length(a)
for j in 1:length(a[k].ids)
for i in 1:nid
if (a[k].ids[j] == ids[j])
if (a[k].ids[j] == ids[i])
iw[i] = max(iw[i], a[k].cfd[j].iw)
end
end
......
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