binarization {otsfeatures} | R Documentation |
Constructs the binarized time series associated with a given ordinal time series
Description
binarization
constructs the binarized time series associated with a given
ordinal time series.
Usage
binarization(series, states)
Arguments
series |
An OTS (numerical vector with integers). |
states |
A numeric vector containing the corresponding states. |
Details
Given an OTS 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
states in the original series.
Value
The binarized time series.
Author(s)
Ángel López-Oriona, José A. Vilar
References
Weiß CH (2018). An introduction to discrete-valued time series. John Wiley and Sons. 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
binarized_series <- binarization(AustrianWages$data[[100]],
states = 0 : 5) # Constructing the binarized
# time series for one OTS in dataset AustrianWages