add TODO Jairo
authorBenjamin Auder <benjamin.auder@somewhere>
Fri, 7 Apr 2017 10:01:50 +0000 (12:01 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Fri, 7 Apr 2017 10:01:50 +0000 (12:01 +0200)
TODO

diff --git a/TODO b/TODO
index 95b9aa1..c5f4081 100644 (file)
--- a/TODO
+++ b/TODO
@@ -79,3 +79,26 @@ Plutôt ça que hack auto notebook generation:
 #Options : smooth_lvl + filtre gaussien (smooth_method ?)
 (this file :
 https://github.com/tgouhier/biwavelet/blob/master/R/smooth.wavelet.R )
 #Options : smooth_lvl + filtre gaussien (smooth_method ?)
 (this file :
 https://github.com/tgouhier/biwavelet/blob/master/R/smooth.wavelet.R )
+
+=====
+
+Voici le code :
+
+library(epclust)
+
+n <- 5
+N <- 128
+M <- matrix(runif(n * N), nrow = n) #séries en lignes
+M <- t(apply(M, 1, cumsum)) / sqrt(n * N)
+matplot(t(M), type = 'l', lty = 1)
+
+dists3a <- computeWerDists(1:n, function(inds) M[,inds], n)
+
+# je passe de distance Wer à corrélations : moralement tout est à 0
+summary((1 - dists3a[lower.tri(dists3a)]^2) / N / n)
+
+# or, les courbes sont très similaires, nous devrions être proche de 1 !
+corM <- cor(t(M))
+summary(corM[lower.tri(corM)])
+
+---------> à checker