Hub
Pricing About
ComponentComponent

Distance Matrix

carlosenrique84 profile image
Version1.0Latest, created on 
Apr 18, 2025 1:13 AM
Drag & drop
Like
Use or download

Distance Matrix

This KNIME component calculates the distance matrix for a given dataset using the scipy.spatial.distance library in Python. The component allows you to choose from a variety of distance metrics to compute the pairwise distances between data points. The only configurable parameter is the distance metric, which can be set to one of the following options:

  • braycurtis: Computes the Bray-Curtis distance.

  • canberra: Computes the Canberra distance.

  • chebyshev: Computes the Chebyshev distance.

  • cityblock: Computes the City Block (Manhattan) distance.

  • correlation: Computes the Correlation distance.

  • cosine: Computes the Cosine distance.

  • euclidean: Computes the Euclidean distance.

  • jensenshannon: Computes the Jensen-Shannon distance.

  • mahalanobis: Computes the Mahalanobis distance.

  • minkowski: Computes the Minkowski distance.

  • seuclidean: Computes the Standardized Euclidean distance.

  • sqeuclidean: Computes the Squared Euclidean distance.

  • dice: Computes the Dice distance.

  • hamming: Computes the Hamming distance.

  • jaccard: Computes the Jaccard distance.

  • kulczynski1: Computes the Kulczynski distance.

  • rogerstanimoto: Computes the Rogers-Tanimoto distance.

  • russellrao: Computes the Russell-Rao distance.

  • sokalmichener: Computes the Sokal-Michener distance.

  • sokalsneath: Computes the Sokal-Sneath distance.

  • yule: Computes the Yule distance.

Usage:

  1. Input your dataset into the component.

  2. Select the desired distance metric from the configuration options.

  3. Execute the component to obtain the distance matrix.

This component is useful for various applications such as clustering, multidimensional scaling, and other analyses that require distance computations.

Version: 1.0
Created by: Carlos Enrique Diaz, MBM, B.Eng.
Email: carlos.diaz@usask.ca

Component details

Input ports
  1. Type: Table
    Port 1
    No description available
Output ports
  1. Type: Table
    Port 1
    No description available

External resources

  • Workflow example

Used extensions & nodes

Created with KNIME Analytics Platform version 5.4.2 Note: Not all extensions may be displayed.
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.1

    knime
  • Go to item
    KNIME Python IntegrationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.1

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.1

    knime

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits