Hub
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
  • KNIME Hub
  • Nodes
  • Aggregated Distance
NodeNode / Manipulator

Aggregated Distance

Analytics Distance Calculation Distance Functions
Drag & drop
Like
Copy short link

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.

Examples:

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.

Node details

Input ports
  1. Type: Distance Measure
    1st Distance Measure
    Distance measure.
  2. Type: Distance Measure
    2nd Distance Measure
    Distance measure.
  3. Type: Distance Measure
    3rd Distance Measure
    Distance measure.
Output ports
  1. Type: Distance Measure
    Distance
    The aggregated distance.

Extension

The Aggregated Distance node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
    Address Deduplication
    Similarity search Distance measurement
    The workflow looks for duplicate records of restaurants by searching for similar names an…
    knime > Examples > 50_Applications > 13_Address_Deduplication > 01_Deduplication_of_Address_Data
  2. Go to item
    Match columns with library (string distance) - D_Valle v1
    lelloba > Forum > Match columns with library (string distance) - D_Valle v1
  3. Go to item
    KNIME_project 1
    akhil > Public > KNIME_project 1
  4. Go to item
    Anonymize Personal Data
    GDPR Customer Intelligence Legal
    +3
    This example shows one way of anonymizing data. it uses the approved adults data set. For…
    knime > Examples > 50_Applications > 34_GDPR_examples > 02_Anonymize_personal_data
  1. Go to item
  2. Go to item
  3. Go to item
  4. Go to item
  5. Go to item
  6. Go to item

KNIME
Open for Innovation

KNIME AG
Hardturmstrasse 66
8005 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Server
© 2022 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits