1 ×

**KNIME Distance Matrix Extension** version **4.2.1.v202008251158** by **KNIME AG, Zurich, Switzerland**

Hierarchically clusters the input data using a distance matrix.

Note: This node works only on small data sets, because it has cubic complexity.

There are two methods to do hierarchical clustering:

- Top-down or divisive, i.e. the algorithm starts with all data points in one huge cluster and the most dissimilar datapoints are divided into subclusters until each cluster consists of exactly one data point.
- Bottom-up or agglomerative, i.e. the algorithm starts with every datapoint as one single cluster and tries to combine the most similar ones into superclusters until it ends up in one huge cluster containing all subclusters.

In order to determine the distance between clusters a measure has to be defined. Basically, there exist three methods to compare two clusters:

- Single Linkage: defines the distance between two clusters c1 and c2 as the minimal distance between any two points x, y with x in c1 and y in c2.
- Complete Linkage: defines the distance between two clusters c1 and c2 as the maximal distance between any two points x, y with x in c1 and y in c2.
- Average Linkage: defines the distance between two clusters c1 and c2 as the mean distance between all points in c1 and c2.

The distance information used by this node is either read from a distance vector column that must be available in the input data or is computed directly with usage of a connected distance measure. You can always calculate the distance matrix using the corresponding calculate node.

- Distance matrix column
- Select the column containing the distance values. This option is disabled if a distance measure is connected (Port 1).
- Linkage type
- Which method to use to measure the distance between points (as described above)
- Ignore missing values
- By default, the node ignores rows with missing values completely. If instead an error should be reported, disable this option.

- Contains the data that should be clustered using hierarchical clustering and the the optional distance matrix.
- Optional distance measure, which renders the distance matrix at Port 0 unnecessary.

- The hierarchical cluster tree that can be fed into the Hierarchical Cluster View node or the Hierarchical Cluster Assigner node.

- Distance Matrix Calculate (24 %)
- Numeric Distances (19 %)
- Hierarchical Clustering (8 %)
- Bit Vector Distances (4 %)
- Matrix Distance (4 %)
- Show all 168 recommendations

- Hierarchical Cluster View (93 %)
- Hierarchical Cluster Assigner (local) (3 %)
- Hierarchical Cluster Assigner (1 %)
- Model Writer (< 1 %)
- Sunburst Chart (JavaScript) (< 1 %)
- Show all 13 recommendations

- _01_PMR_Analysis (KNIME Hub)
- 01_Clustering (KNIME Hub)
- 01_Document_clustering (KNIME Hub)
- 01_Document_clustering (KNIME Hub)
- 03_Clustering (KNIME Hub)
- Show all 26 workflows

To use this node in KNIME, install KNIME Distance Matrix from the following update site:

KNIME 4.2

A zipped version of the software site can be downloaded here. Read our FAQs to get instructions about how to install nodes from a zipped update site.

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.

Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com, follow @NodePit on Twitter, or chat on Gitter!

Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.