Description Usage Arguments Value Examples
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'.
1 2 3 | calculate_dtw_blockdistance(ts, na_option = "mean",
window_type = "slantedband", window_size = 100,
dist_method = "Euclidean")
|
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. |
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.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.