Tell me more ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How do I instruct Agglomerative clustering to stop/NOT merging two particular clusters if the distance between the two clusters is larger than a threshold value?

I know that we can implement a custom distance measure and a custom linkage function. Distance measure says how to measure the distance between any two data points. So even if I implement a custom distance measure, it just says what is the distance between any two data points.

Where in the code should/can I mention a threshold value, that if not met, should prevent thw clusters from being merged. Thus, at the end, if only two clusters are remaining, and if the threshold value is not met between these two clusters, then these two clusters should not be merged into one global cluster.

Is this possible in Mathematica?

share|improve this question
1  
Could you please provide sample code of what you are trying to do. – Timo Apr 20 '12 at 10:20
Did you look at the "Hierarchical Clustering Package"? – belisarius Apr 20 '12 at 13:28
Most active Mathematica answerers have moved to the dedicated site Mathematica.stackexchange.com. You'll probably have better luck there. – Sjoerd C. de Vries Apr 21 '12 at 0:14
1  
Try With a linkage function. something like FindClusters[datapairs, Method -> {"Agglomerate", "Linkage" -> (If[#3 > 1.9`*^-6, #1 + #2, (#1 + #2)^2] &)}] – belisarius Apr 21 '12 at 17:24

migrated from stackoverflow.com Apr 23 '12 at 2:44

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.