Changeset 20 for distools/issquare.m


Ignore:
Timestamp:
07/16/11 14:48:08 (13 years ago)
Author:
bduin
Message:

updates for handling soft labels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • distools/issquare.m

    r10 r20  
    1212% DESCRIPTION
    1313% True is D is a square dissimilarity matrix dataset. This includes
    14 % the check whether feature labels equal object labels.
    15 % If called without an output argument ISSQUARE generates an error
    16 % if D is not square.
     14% the check (in case of crisp dataset D) whether feature labels equal
     15% object labels. If called without an output argument ISSQUARE generates an
     16% error if D is not square.
    1717
    1818% Copyright: Elzbieta Pekalska, ela.pekalska@googlemail.com
     
    2626
    2727if m == k
    28   n  = nlabcmp(getfeatlab(d),getlabels(d));
    29   OK = (n == 0);
     28        if islabtype(d,'crisp')
     29                n  = nlabcmp(getfeatlab(d),getlabels(d));
     30                OK = (n == 0);
     31        else
     32                OK = 1;
     33        end
    3034else
    3135  OK = 0;
Note: See TracChangeset for help on using the changeset viewer.