View source: R/dis_mahalanobis_dtw.R
dis_mahalanobis_dtw | R Documentation |
dis_mahalanobis_dtw
returns a pairwise distance matrix based on a
dynamic time warping distance in which the local cost matrix is computed
by using the Mahalanobis distance \insertCitemei2015learningmlmts.
dis_mahalanobis_dtw(X, M = NULL, ...)
X |
A list of MTS (numerical matrices). |
M |
The matrix with respect to compute the Mahalanobis distance (default is the covariance matrix of concatenation of all MTS objects by rows). |
... |
Additional parameters for the function. See |
Given a collection of MTS, the function returns the pairwise distance matrix,
where the distance between two MTS \boldsymbol X_T
and \boldsymbol Y_T
is defined as
a dynamic time warping-type distance in which the local cost matrix is
constructed by using the Mahalanobis distance.
The computed pairwise distance matrix.
Ángel López-Oriona, José A. Vilar
mei2015learningmlmts
dis_dtw_1
, dis_dtw_2
, dis_mahalanobis_dtw
toy_dataset <- Libras$data[1 : 10] # Selecting the first 10 MTS from the
# dataset Libras
distance_matrix <- dis_mahalanobis_dtw(toy_dataset) # Computing the pairwise
# distance matrix based on the distance dis_mahalanobis_dtw
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.