View source: R/dis_zagorecki.R
dis_zagorecki | R Documentation |
dis_zagorecki
returns a pairwise distance matrix based on the feature
extraction procedure proposed by \insertCitezagorecki2015versatile;textualmlmts.
dis_zagorecki(set, features = FALSE)
set |
A list of MTS (numerical matrices). |
features |
Logical. If |
Given a collection of MTS, the function returns the pairwise distance matrix, where the distance between two MTS is defined as the Euclidean distance between the corresponding feature vectors
If features = FALSE
(default), returns a distance matrix based on the distance d_{ZAGORECKI}
. Otherwise, the function
returns a dataset of feature vectors, i.e., each row in the dataset contains the features employed to compute the
distance d_{ZAGORECKI}
.
Ángel López-Oriona, José A. Vilar
zagorecki2015versatilemlmts
toy_dataset <- AtrialFibrillation$data[1 : 10] # Selecting the first 10 MTS from the
# dataset AtrialFibrillation
distance_matrix <- dis_zagorecki(toy_dataset) # Computing the pairwise
# distance matrix based on the distance dis_zagorecki
feature_dataset <- dis_zagorecki(toy_dataset, features = TRUE) # Computing
# the corresponding dataset of features
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.