binarization {ctsfeatures} | R Documentation |
Constructs the binarized time series associated with a given categorical time series
Description
binarization
constructs the binarized time series associated with a given
categorical time series.
Usage
binarization(series)
Arguments
series |
An object of type |
Details
Given a CTS of length with range
,
, the function
constructs the binarized time series, which is defined as
,
with
such that
if
(
). The binarized series is constructed in the form of a matrix
whose rows represent time observations and whose columns represent the
categories in the original series
Value
The binarized time series.
Author(s)
Ángel López-Oriona, José A. Vilar
References
López-Oriona Á, Vilar JA, D’Urso P (2023). “Hard and soft clustering of categorical time series based on two novel distances with an application to biological sequences.” Information Sciences, 624, 467–492.
Examples
sequence_1 <- GeneticSequences[which(GeneticSequences$Series==1),]
binarized_series <- binarization(sequence_1) # Constructing the binarized
# time series for the first CTS in dataset GeneticSequences