Learn R Programming

mlmts (version 1.1.2)

dis_eucl: Constructs a pairwise distance matrix based on the Euclidean distance

Description

dis_eucl returns a pairwise distance matrix based on the Euclidean distance between MTS

Usage

dis_eucl(X)

Value

The computed pairwise distance matrix.

Arguments

X

A list of MTS (numerical matrices).

Author

Ángel López-Oriona, José A. Vilar

Details

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)

Examples

Run this code
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

Run the code above in your browser using DataLab