diff options
Diffstat (limited to 'R/nonparam.R')
-rw-r--r-- | R/nonparam.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/nonparam.R b/R/nonparam.R index d1e56a9..ad8254d 100644 --- a/R/nonparam.R +++ b/R/nonparam.R @@ -201,7 +201,7 @@ spa <- function(x,winsize=NULL,freq=NULL){ phi_yu <- sapply(freq,cov2spec,Ryu[i,j,],M) phi_u <- sapply(freq,cov2spec,Ruu[j,j,],M) G[i,j,] <- phi_yu/phi_u - temp <- phi_y - phi_yu*Conj(phi_yu)/phi_u + temp <- temp - phi_yu*Conj(phi_yu)/phi_u } spec[i,i,] <- temp } |