summaryrefslogtreecommitdiff
path: root/report/pyp_clustering/acl09-short/code/antoniakpred.m
diff options
context:
space:
mode:
Diffstat (limited to 'report/pyp_clustering/acl09-short/code/antoniakpred.m')
-rw-r--r--report/pyp_clustering/acl09-short/code/antoniakpred.m12
1 files changed, 0 insertions, 12 deletions
diff --git a/report/pyp_clustering/acl09-short/code/antoniakpred.m b/report/pyp_clustering/acl09-short/code/antoniakpred.m
deleted file mode 100644
index c4153c04..00000000
--- a/report/pyp_clustering/acl09-short/code/antoniakpred.m
+++ /dev/null
@@ -1,12 +0,0 @@
-function output = antoniakpred(input,b)
-
-uniqin = unique(input);
-prediction = zeros(max(input),1);
-
-p0=1/30114;
-for i = 1:length(uniqin)
- prediction(uniqin(i)) = b*p0*log((b*p0+uniqin(i))/(b*p0));
-end
-
-output = prediction(input);
-