Hierarchical Cluster with Maximum Plot Distance Help?

epsilon80_1997

New Member
Joined
Jul 1, 2015
Messages
2
Trying to figure out how to hierarchical cluster the maximum number of clusters of less than 3 units of difference. The data points can reach as much as a few thousand. Distance formula is (absolute value difference of x values + one-half of absolute value of y values, unless the y difference is greater than the absolute value of the x value difference, then use the full absolute value of the difference of the y values) (for example abs(x-x) + (abs(y-y))/2) = distance, but if abs(y-y) is larger than (x-x), then abs(x-x) + (abs(y-y). Example distance results as well:



Distance from 16384, 16384
xyDistance
16384163840
16385163852
16386163863
16384163873
16383163813
16381163843
16387163854
16381163864
16384163795
16381163795
16383163895
16386163895
16381163815
16380163795
16380163825
16388163786
16388163876
16385163906

<colgroup><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col span="2"></colgroup><tbody>
</tbody>
 

Some videos you may like

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

epsilon80_1997

New Member
Joined
Jul 1, 2015
Messages
2
1638416385
1638416385
xydistancedistance
163901638676

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>


an example of the distance results


formulas used:

1638416385
1638416385
xyfields
1639016386=ROUNDUP(IF(ABS($B272-D$2)/2>ABS($A272-D$1),ABS($B272-D$2),ABS($B272-D$2)/2+ABS($A272-D$1)),0)=ROUNDUP(IF(ABS($B272-E$2)/2>ABS($A272-E$1),ABS($B272-E$2),ABS($B272-E$2)/2+ABS($A272-E$1)),0)

<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Watch MrExcel Video

Forum statistics

Threads
1,123,259
Messages
5,600,575
Members
414,390
Latest member
plimbu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top