dis_eucl {mlmts}R Documentation

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)

Arguments

X

A list of MTS (numerical matrices).

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)

Value

The computed pairwise distance matrix.

Author(s)

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

Examples

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

[Package mlmts version 1.1.1 Index]