0 ×

**KNIME Distance Matrix Extension** version **4.1.0.v201911251600** by **KNIME AG, Zurich, Switzerland**

Enables the aggregation of
arbitrary distance measures using a
Java
snippet. The port number is used to refer to a value of a given
distance measure
for example
`$${D:Port_0}$$`

will insert the double value resulting of the distance measure on
port 0.

Compute the arithmetic mean of the distance measures on port 0 and
1:

`mean($${D:Port_0}$$,$${D:Port_1}$$)`

Compute the arithmetic mean of the distance measures on port 0 and 1
only if the distance on port 0 is less or equal to 0.5 and return
*1*
otherwise

`ifElse($${D:Port_0}$$ <= 0.5, mean($${D:Port_0}$$, $${D:Port_1}$$), 1)`

Note that strings which are part of the expression and are not from the input data (or the result of another wrapped function call) need to be enclosed in double quotes ('"'). Additionally, if the string contains a quote character, it must be escaped using a backslash character ('\"'). Finally, other special characters such as single quotes and backslashes need to be escaped using a backslash. For instance, a single backslash in a string is written as two consecutive backslash characters; the first one acts as the escape character for the second.

- Distances
- The list contains the distances connected to this node. Double click any of the distance ports to insert the respective field in the expression editor. It will replace your current selection or simply insert at the current caret position.
- Flow Variable List
- The list contains the flow variables that are currently available at the node input. Double clicking any of the entries will insert the respective identifier at the current cursor position (replacing the selection, if any).
- Function
- Select a single function to display its description. A double click will insert the function in the expression editor. It will replace your current selection or simply insert at the current caret position. Select a category to narrow down the list of displayed functions.
- Expression
- The place for your business logic. You can hit
*ctrl+space*to get an auto completion box.

- String Distances (36 %)
- Numeric Distances (30 %)
- Java Distance (14 %)
- Bit Vector Distances (5 %)
- Distance Matrix Calculate (5 %)
- Java Edit Variable (2 %)
- Aggregated Distance (2 %)
- Mahalanobis Distance (2 %)
- Matrix Distance (2 %)
- Geo Distances (2 %)
- Show all 10 recommendations

- Similarity Search (43 %)
~~K Nearest Neighbor (Distance Function)~~(25 %) Deprecated- DBSCAN (7 %)
- Distance Matrix Calculate (7 %)
- Hierarchical Clustering (DistMatrix) (4 %)
~~K Nearest Neighbor~~(4 %) StreamableDeprecated- Aggregated Distance (4 %)
- k-Medoids (4 %)
- Column Distance (4 %)
- Show all 9 recommendations

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

KNIME 4.1

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.