calculate_dtw_blockdistance: Generates the dynamic time warping (DTW) for a ts object to...

Description Usage Arguments Value Examples

Description

This is a function to generate the DTW for a ts to the 13 blocks from the 1000 ts in the un_ts_list and multi_ts_list in /data. Each block contains 100 ts. As input is only required an object from the class time series. Otherwise the function returns an error message. Also, for na_option is only required the string 'mean' or'kalman' allowed. This means, that all na values are either replaced by the mean, or kalman imputation of the ts. The standard value of na_option is 'mean'.

Usage

1
2
3
calculate_dtw_blockdistance(ts, na_option = "mean",
  window_type = "slantedband", window_size = 100,
  dist_method = "Euclidean")

Arguments

ts

A time series object.

na_option

A string value containing either 'mean' or'kalman'; Standard values is 'mean'.

window_type

Windowing function. Character: "none", "itakura", "sakoechiba", "slantedband", or a function

window_size

Integer window size for the window type.

dist_method

Distance function to use.

Value

The DTW of ts to the 13 different blocks. Thus an vector with 13 DTW distances is returned. The first number is the DTW to block 1,..., the last number is the DTW to block 13. If the above input params are wrong, an error message is returned.

Examples

1

mowomoyela/tstaxonomyr documentation built on May 15, 2019, 4:47 p.m.