trending: Creates bit-level (trending) representation from a vector

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/RcppExports.R

Description

The trending Computes bit-level (trending) representation from a vector.

Usage

1

Arguments

x

the numeric vector (time series)

Details

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.

Value

the integer vector of zeros and ones

Author(s)

Peter Laurinec, <tsreprpackage@gmail.com>

See Also

clipping

Examples

1

TSrepr documentation built on July 13, 2020, 9:07 a.m.