dis_zagorecki {mlmts}R Documentation

Constructs a pairwise distance matrix based on feature extraction

Description

dis_zagorecki returns a pairwise distance matrix based on the feature extraction procedure proposed by Zagorecki (2015).

Usage

dis_zagorecki(set, features = FALSE)

Arguments

set

A list of MTS (numerical matrices).

features

Logical. If features = FALSE (default), a distance matrix is returned. Otherwise, the function returns a dataset of feature vectors.

Details

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

Value

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}.

Author(s)

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

References

Zagorecki A (2015). “A versatile approach to classification of multivariate time series data.” In 2015 Federated Conference on Computer Science and Information Systems (FedCSIS), 407–410. IEEE.

Examples

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

[Package mlmts version 1.1.1 Index]