repr_list: Computation of list of representations list of time series...

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

View source: R/repr_list.R

Description

The repr_list computes list of representations from list of time series

Usage

1
2
3
4
5
6
7
8
9
repr_list(
  x,
  func = NULL,
  args = NULL,
  normalise = FALSE,
  func_norm = norm_z,
  windowing = FALSE,
  win_size = NULL
)

Arguments

x

the list of time series, where time series can have different lengths

func

the function that computes representation

args

the list of additional (or required) parameters of func (function that computes representation)

normalise

normalise (scale) time series before representations computation? (default is FALSE)

func_norm

the normalisation function (default is norm_z)

windowing

perform windowing? (default is FALSE)

win_size

the size of the window

Details

This function computes representation to an every member of a list of time series (that can have different lengths) and returns list of time series representations. It can be combined with windowing (see repr_windowing) and normalisation of time series.

Value

the numeric list of representations of time series

Author(s)

Peter Laurinec, <tsreprpackage@gmail.com>

See Also

repr_windowing, repr_matrix

Examples

1
2
3
4
5
6
7
8
# Create random list of time series with different lengths
list_ts <- list(rnorm(sample(8:12, 1)), rnorm(sample(8:12, 1)), rnorm(sample(8:12, 1)))
repr_list(list_ts, func = repr_sma,
 args = list(order = 3))

# return normalised representations, and normalise time series by min-max normalisation
repr_list(list_ts, func = repr_sma,
 args = list(order = 3), normalise = TRUE, func_norm = norm_min_max)

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