Changeset 7


Ignore:
Timestamp:
10/20/10 11:55:27 (14 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prextra/kannc.m

    r6 r7  
    6161                        out = out';
    6262                else
    63                         out = hist(J,[1:c]);
     63                        out = hist(J',[1:c])';
    6464                end
    6565                % 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);
    6767                out = setdat(a,out,w);
    6868        else
Note: See TracChangeset for help on using the changeset viewer.