Hub
Pricing About
ComponentComponent

TD_DTW

Teradata Team profile image
Draft Latest edits on 
Mar 28, 2024 5:15 PM
Drag & drop
Like
Use or download
Dynamic time warping (DTW) is used to the measure the similarity of two time series. The generic DTW algorithm is O(n2) in both space and time. Thus, it is not well suited for large data. There are a lot of variant algorithms that attempt to address such limitation. One of the most well-known algorithms is FastDTW by Stan Salvador and Philip Chan, which is O(n) in both space and time. This algorithm can find the optimal, or a close to optimal warp path between two series, depending on the search radius used.. TD_DTW implements the algorithm from scratch using C++. The behavior mostly matches the FastDTW Java implementation done by the original authors. It should be noted that the Python fastdtw package has several algorithm differences with the Java version. So, the result of TD_DTW may not match that of Python fastdtw, but it should closely match the Java implementation.. TD_DTW does have a slightly different behaviors from the Java implementation. In Java implementation, the shrunk (i.e. reduced) series is half of the parent series. If the parent series has odd number of elements, while most of the elements of the shrunk series are the average of two parent elements, the last element of the shrunk series is the average of the last three elements of the parent series. TD_DTW instead chooses to have the last element to match the last element of the parent. As the result, TD_DTW can have slightly larger size in the shrunk series in each recursion. While there can be edge cases, this slight deviation mostly has little effect in finding the best warp path within the radius.

Component details

Input ports
  1. Type: DB Session
    Teradata Connection
    Connection to a Teradata Database Instance
  2. Type: Table
    Input
    The two series inputs must have the same number of payload columns.
  3. Type: Table
    Input2
    The two series inputs must have the same number of payload columns.
Output ports
  1. Type: Table
    output of TD_DTW
    output of TD_DTW

Used extensions & nodes

Created with KNIME Analytics Platform version 4.7.0
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.7.0

    knime
  • Go to item
    KNIME DatabaseTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.7.0

    knime
  • Go to item
    KNIME Python IntegrationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.7.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.7.0

    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