summaryrefslogtreecommitdiff
path: root/report/pyp_clustering/acl09-short/code/noP0pred.m
blob: f72f14323a023b9c59ad0aac0337b87d6df5d2f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
function output = antoniakpred(input,b)

uniqin = unique(input);
prediction = zeros(max(input),1);

for i = 1:length(uniqin)
  prediction(uniqin(i)) = b*log((b+uniqin(i))/b);
end

output = prediction(input);