Changeset 31


Ignore:
Timestamp:
06/04/12 11:48:27 (13 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prextra/kannc.m

    r9 r31  
    11%KANNC 1-Nearest Neighbor Classifier using ANN Matlab Wrapper
    22%
    3 %   W = KANNC(A,,K,OPTION)
     3%   W = KANNC(A,K,OPTION)
    44%
    55% INPUT
     
    5959                J = nlab(J);
    6060                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);
    6363                        out = out';
    6464                else
Note: See TracChangeset for help on using the changeset viewer.