dis_eucl | R Documentation |
dis_eucl
returns a pairwise distance matrix based on the Euclidean distance
between MTS
dis_eucl(X)
X |
A list of MTS (numerical matrices). |
Given a collection of MTS, the function returns the pairwise distance matrix, where the distance between two MTS is defined as the sum of the standard Euclidean distances between each corresponding pair of dimensions (univariate time series)
The computed pairwise distance matrix.
Ángel López-Oriona, José A. Vilar
toy_dataset <- AtrialFibrillation$data[1 : 10] # Selecting the first 10 MTS from the
# dataset AtrialFibrillation
distance_matrix <- dis_eucl(toy_dataset) # Computing the pairwise
# distance matrix based on the distance dis_eucl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.