Hub
Pricing About
WorkflowWorkflow

Basic example of Mahalanobis distance calculation

VariancesDistanceExample
lisovyi profile image
Draft Latest edits on 
Sep 9, 2019 11:40 AM
Drag & drop
Like
Download workflow
Workflow preview
This KNIME workflow demonstrates usage of the Mahalanobis Distance calculation. The calculation is done in two steps- first the distance metrics is calculated and then it is used to calculated actual distances using Distance Matrix Calculate node. The distances are calculated between 3 points using a different sample to define covariance: A 0.3 1.1 B 0.45 0.8 C 0.45 1.4 Note, that the Euclidian distance between points (A,B) is the same as (A,C). However, the calculated Mahalanobis distance is much larger for (A,B)- 5.50 vs 0.96, because the variance in that direction is much smaller. The workflow also shows how to split the collection of distances to get representation, that could be dumped into a scv file.

External resources

  • Original forum thread
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

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

    KNIME AG, Zurich, Switzerland

    Version 4.0.1

    knime
  • Go to item
    KNIME Math Expression (JEP)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.0.0

    knime

Legal

By using or downloading the workflow, 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