c_binarization function

Constructs the cumulative binarized time series associated with a given ordinal time series

Constructs the cumulative binarized time series associated with a given ordinal time series

c_binarization constructs the cumulative binarized time series associated with a given ordinal time series. UTF-8

c_binarization(series, states)

Arguments

  • series: An OTS (numerical vector with integers).
  • states: A numeric vector containing the corresponding states.

Returns

The binarized time series.

Details

Given an OTS of length TT with range S={s0,s1,s2,,sn}\mathcal{S}=\{s_0, s_1, s_2, \ldots, s_n\} (s0<s1<s2<<sns_0 < s_1 < s_2 < \ldots < s_n), Xt={X1,,XT}\overline{X}_t=\{\overline{X}_1,\ldots, \overline{X}_T\}, the function constructs the cumulative binarized time series, which is defined as Yt={Y1,,YT}\overline{\boldsymbol Y}_t=\{\overline{\boldsymbol Y}_1, \ldots, \overline{\boldsymbol Y}_T\}, with Yk=(Yk,0,Yk,1,,Yk,n1)\overline{\boldsymbol Y}_k=(\overline{Y}_{k,0}, \overline{Y}_{k,1},\ldots, \overline{Y}_{k,n-1})^\top

such that Yk,i=1\overline{Y}_{k,i}=1 if Xksi\overline{X}_k \le s_i (c("k=1,ldots,T,\nk=1,\\ldots,T,\n", ",i=0,ldots,n1, i=0,\\ldots,n-1")). The cumulative 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.

Examples

c_binarized_series <- c_binarization(AustrianWages$data[[100]], states = 0 : 5) # Constructing the cumulative binarized # time series for one OTS in dataset AustrianWages

References

Rdpack::insert_ref(key="weiss2018introduction",package="otsfeatures")

Rdpack::insert_ref(key="lopez2023hard",package="otsfeatures")

Author(s)

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

  • Maintainer: Angel Lopez-Oriona
  • License: GPL-2
  • Last published: 2023-03-01

Useful links