powered by
The trending Computes bit-level (trending) representation from a vector.
trending
trending(x)
the integer vector of zeros and ones
the numeric vector (time series)
Peter Laurinec, <[email protected]>
Trending transforms time series to bit-level representation.
It is defined as follows: $$repr_t = {1 if x_t - x_{t+1} < 0 , 0 otherwise,}$$ where \(x_t\) is a value of a time series.
clipping
trending(rnorm(50))
Run the code above in your browser using DataLab