R 4.3 on windows
[iramuteq] / Rscripts / distance-labbe.R
index eccb3ae..d68f743 100644 (file)
@@ -1,5 +1,5 @@
 #Author: Pierre Ratinaud
-#Copyright (c) 2015-2016 Pierre Ratinaud
+#Copyright (c) 2008-2020 Pierre Ratinaud
 #License: GNU/GPL
 
 #Distance de Labbe
@@ -29,7 +29,7 @@ compute.labbe <- function(x, y, tab) {
         U <- N1/N2
         mini.tab[,2] <- mini.tab[,2] * U
                col.plusgrand <- mini.tab[,2]
-               cs.plus.grand <- sum(col.plusgrand[col.plusgrand>1])
+               cs.plus.grand <- sum(col.plusgrand[col.plusgrand>=1])
     }
     commun <- which((mini.tab[,1] > 0) & (mini.tab[,2] > 0))
     deA <- which((mini.tab[,plus.petit] > 0) & (mini.tab[,plus.grand] == 0))