SOM Toolbox Online documentation


Md = som_mdist(D,q,mask,Ne)

 SOM_MDIST Mutual (or pairwise) distance matrix for the given data.
   Md = som_mdist(D,[q],[mask],[Ne])

    Md = som_mdist(D); 
    Md = som_mdist(D,Inf); 
    Md = som_mdist(D,2,Ne); 

  Input and output arguments ([]'s are optional):
   D        (matrix) size dlen x dim, the data set
            (struct) map or data struct
   [q]      (scalar) distance norm, default = 2
   [mask]   (vector) size dim x 1, the weighting mask
   [Ne]     (matrix) size dlen x dlen, sparse matrix 
                     indicating which distances should be 
                     calculated (ie. less than Infinite) 

 See also PDIST. 

[ SOM Toolbox online doc ]