Changeset 28


Ignore:
Timestamp:
03/31/12 18:04:35 (13 years ago)
Author:
bduin
Message:
 
Location:
distools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • distools/genddat.m

    r10 r28  
    6060function [DTR,DTE,Itr,Ite] = genddat(D,m,k);
    6161
     62  if nargin < 3, k = []; end
     63
     64        % If input is a cell array of datasets, apply this procedure
     65  % to the individual datasets.
     66        if (iscell(D))
     67                A  = cell(size(D));
     68                B  = cell(size(D));
     69                IA = cell(size(D));
     70                IB = cell(size(D));
     71                seed = randreset;
     72                for j=1:length(D(:))
     73                        randreset(seed);
     74                        [DTR{j},DTE{j},Itr{j},Ite{j}] = feval(mfilename,D{j},m,k);
     75                end
     76                return;
     77        end
     78
     79
     80
    6281[n,nk,c] = getsize(D);
    6382nlab     = getnlab(D);
    6483discheck(D,[],1);   % allow for similarities     
    6584
    66 if nargin < 3,
    67         k = [];
    68 else
     85if ~isempty(k)
    6986        if length(k) == 1
    7087                k = k*ones(1,c);
  • distools/hausdma.m

    r22 r28  
    1414% Computes a Hausdorff distance matrix DH and a modified Hausdorff distance
    1515% matrix DM between the datafiles of binary images A and B.
     16% DH = MAX_B(MIN_A(D_AB)), DM = MEAN_B(MIN_A(D_AB))
    1617% Preferably, NA <= NB (faster computation).
    1718% Progress is reported in fid (fid = 1: on the sreeen).
  • distools/pe_em.m

    r20 r28  
    3939% ALF of the total variance is preserved for ALF in (0,1). The resulting X is found
    4040% by D*W. The signature of the obtained PE space (numbers of positive and negative
    41 % directions) can be found by PE_SIG(W). The spectrum of the obtained space
    42 % can be found by PE_SPEC(W).
     41% directions) can be found by GETDATA(W,'sig'). The spectrum of the obtained space
     42% can be found by GETDAT(W,'eval').
    4343%
    4444% SEE ALSO
    45 % MAPPINGS, DATASETS, AUGPSEM, PCA, PE_PCA, PE_SPEC, GETSIG, SETSIG
     45% MAPPINGS, DATASETS, AUGPSEM, PCA, GETSIG, SETSIG
    4646%
    4747% LITERATURE
Note: See TracChangeset for help on using the changeset viewer.