Skip to contents

Distance Matrix for Quaternion Time Series Samples

Usage

distDTW(
  qts_list,
  normalize_distance = TRUE,
  labels = NULL,
  resample = TRUE,
  disable_normalization = FALSE,
  step_pattern = dtw::symmetric2
)

Arguments

qts_list

An object of class qts_sample.

normalize_distance

A boolean specifying whether to compute normalized distance between QTS. Please note that not all step patterns are normalizable. Defaults to FALSE.

labels

A character vector specifying labels for each QTS. Defaults to NULL which uses row numbers as labels.

resample

A boolean specifying whether the QTS should be uniformly resampled on their domain before computing distances. Defaults to TRUE.

disable_normalization

A boolean specifying whether quaternion normalization should be disabled. Defaults to FALSE which ensures that we always deal with unit quaternions.

step_pattern

A dtw::stepPattern specifying the local constraints on the warping path. Defaults to dtw::symmetric2 which uses symmetric and normalizable warping paths with no local slope constraints. See dtw::stepPattern for more information.

Value

A stats::dist object storing the distance matrix between QTS in a sample via DTW.

Examples

D <- distDTW(vespa64$igp)