DTW Function Syntax | Teradata Vantage - DTW Syntax - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
9.02
9.01
2.0
1.3
Published
February 2022
Language
English (United States)
Last Update
2022-02-10
dita:mapPath
rnn1580259159235.ditamap
dita:ditavalPath
ybt1582220416951.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

Version 1.9

SELECT * FROM DTW (
  ON { table | view | (query) } AS InputTable
    PARTITION BY timeseriesid
    ORDER BY target_timestamp
  ON template_table AS ReferenceTable DIMENSION
    ORDER BY templateid, template_timestamp
  [ ON mapping_table AS MappingTable
      PARTITION BY timeseriesid ]
  USING
  TargetColumns ('target_value', 'target_timestamp')
  TemplateColumns ('template_value', 'template_timestamp')
  TimeseriesID ('timeseriesid')
  TemplateID ('templateid')
  [ Radius (radius) ]
  [ DistanceMethod ('distance_method') ]
  [ WarpPath ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'})]
) AS alias;