repr_dwt: DWT representation

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

View source: R/nondata_adaptive_repr.R

Description

The repr_dwt computes DWT (Discrete Wavelet Transform) representation (coefficients) from a time series.

Usage

1
repr_dwt(x, level = 4, filter = "d4")

Arguments

x

the numeric vector (time series)

level

the level of DWT transformation (default is 4)

filter

the filter name (default is "d6"). Can be: "haar", "d4", "d6", ..., "d20", "la8", "la10", ..., "la20", "bl14", "bl18", "bl20", "c6", "c12", ..., "c30". See more info at wt.filter.

Details

This function extracts DWT coefficients. You can use various wavelet filters, see all of them here wt.filter. The number of extracted coefficients depends on the level selected. The final representation has length equal to floor(n / 2^level), where n is a length of original time series.

Value

the numeric vector of DWT coefficients

Author(s)

Peter Laurinec, <tsreprpackage@gmail.com>

References

Laurinec P, Lucka M (2016) Comparison of representations of time series for clustering smart meter data. In: Lecture Notes in Engineering and Computer Science: Proceedings of The World Congress on Engineering and Computer Science 2016, pp 458-463

See Also

repr_dft, repr_dct, dwt

Examples

1
2
3
# Interpretation: DWT with Daubechies filter of length 4 and
# 3rd level of DWT coefficients extracted.
repr_dwt(rnorm(50), filter = "d4", level = 3)

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