Changeset 31 for prextra/kannc.m
- Timestamp:
- 06/04/12 11:48:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/kannc.m
r9 r31 1 1 %KANNC 1-Nearest Neighbor Classifier using ANN Matlab Wrapper 2 2 % 3 % W = KANNC(A, ,K,OPTION)3 % W = KANNC(A,K,OPTION) 4 4 % 5 5 % INPUT … … 59 59 J = nlab(J); 60 60 if size(J,2) == 1 61 out = zeros( 2,n);62 out([1: 2:n*2]+J'-1) = ones(1,n);61 out = zeros(c,n); 62 out([1:c:n*c]+J'-1) = ones(1,n); 63 63 out = out'; 64 64 else
Note: See TracChangeset
for help on using the changeset viewer.