projects
/
epclust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
firx error in slave.c
[epclust.git]
/
old_C_code
/
stage2_UNFINISHED
/
src
/
unused
/
effectives-per-classe.r
diff --git a/old_C_code/stage2_UNFINISHED/src/unused/effectives-per-classe.r
b/old_C_code/stage2_UNFINISHED/src/unused/effectives-per-classe.r
new file mode 100644
(file)
index 0000000..
a63a8fb
--- /dev/null
+++ b/
old_C_code/stage2_UNFINISHED/src/unused/effectives-per-classe.r
@@ -0,0
+1,6
@@
+# compute the effectives per class
+
+load("~/ownCloud/projects/2014_EDF-Orsay-Lyon2/res/clfit200RC.Rdata")
+clustfactor <- read.table("~/tmp/clustfactorWER15.txt")
+
+aggregate(c(table(res[,1])), by = list(clustfactor$x), FUN = sum)