Code covered by the BSD License  

Highlights from
Recognizing Far-Near Relations of Clusters by GDEM, Visualization by Line-Pearl Pattern

image thumbnail

Recognizing Far-Near Relations of Clusters by GDEM, Visualization by Line-Pearl Pattern

by

 

21 Aug 2010 (Updated )

measure far-near degrees (distances) between clusters & dense degrees of border regions of clusters

propag_intra(Dmatrix, A, startpoint)
function [distA, Rinter, distB] = propag_intra(Dmatrix, A, startpoint)
% compute distances within A along different propagation routes

if isempty(startpoint)
    startpoint = A(1);
end
[distc,Rinter] = propag_through(Dmatrix,A',startpoint,1);

% find two elements that are farest each other
[Q,R] = max(Dmatrix(A,A));
[Q,b] = max(Q);
a = A(R(b));
b = A(b);

[dista,Ra] = propag_through(Dmatrix,A',a,1);
[distb,Rb] = propag_through(Dmatrix,A',b,1);
Rinter = [Ra Rb Rinter];

distA = (dista+distb+distc)/3;
distA = distA(1);
distB = [dista;distb;distc];
distB = distB(:,1);

Contact us