You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t <- 1:70; x <- sin(2*pi*t/7); y <- c(tail(x,1),head(x,-1)) + .05*cos(t/3); tau <- 7
43
+
make_tau <- function(v,tau){n<-length(v);z<-vector('list',tau+1);for(i in 0:tau)z[[i+1]]<-v[(tau-i+1):(n-i)];do.call(cbind,z)}
44
+
xn <- unlist(NNS.norm(make_tau(x,tau))[,1]); yn <- unlist(NNS.norm(make_tau(y,tau))[,1]); xy <- NNS.norm(cbind(xn,yn))
45
+
cat('R xn head',head(xn,8),'\n'); cat('R yn head',head(yn,8),'\n'); cat('R xy head',as.numeric(head(xy,4)),'\n')
46
+
cat('R Uni xy',NNS:::Uni.caus(x,y,tau,plot=FALSE),'\n'); cat('R Uni yx',NNS:::Uni.caus(y,x,tau,plot=FALSE),'\n'); cat('R caus',NNS.caus(x,y,tau='ts',plot=FALSE),'\n')
59
47
RS
60
-
python - <<'PY' >> live-r-debug.txt
48
+
python - <<'PY' >> live-r-debug.txt 2>&1
61
49
import numpy as np
62
-
from nns import nns_causation,nns_copula,nns_norm,nns_var
50
+
from nns import dy_d,nns_causation,nns_copula,nns_norm
63
51
from nns.causation import _tau_normalized,_uni_caus
0 commit comments