Changeset 7
- Timestamp:
- 10/20/10 11:55:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/kannc.m
r6 r7 61 61 out = out'; 62 62 else 63 out = hist(J ,[1:c]);63 out = hist(J',[1:c])'; 64 64 end 65 65 % Use Bayes estimators for posteriors 66 out = (out+ones(size(out,1), 2))/(v.knn+c);66 out = (out+ones(size(out,1),c))/(v.knn+c); 67 67 out = setdat(a,out,w); 68 68 else
Note: See TracChangeset
for help on using the changeset viewer.