projects
/
iramuteq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d80c417
)
correction labbé
author
pierre
<ratinaud@univ-tlse2.fr>
Mon, 20 Jun 2022 16:30:26 +0000
(18:30 +0200)
committer
pierre
<ratinaud@univ-tlse2.fr>
Mon, 20 Jun 2022 16:30:26 +0000
(18:30 +0200)
Rscripts/distance-labbe.R
patch
|
blob
|
history
diff --git
a/Rscripts/distance-labbe.R
b/Rscripts/distance-labbe.R
index
3d7c296
..
d68f743
100644
(file)
--- a/
Rscripts/distance-labbe.R
+++ b/
Rscripts/distance-labbe.R
@@
-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))