padding: Padding data to dyadic sample size

Description Usage Arguments Value Examples

View source: R/dwt_vt.R

Description

Padding data to dyadic sample size

Usage

1
padding(x, pad = c("per", "zero", "sym"))

Arguments

x

A vector or time series containing the data be to decomposed.

pad

Method for padding, including periodic, zero and symetric padding.

Value

A dyadic length (power of 2) vector or time series.

Examples

1
2
3
4
5
x <- rnorm(360)
x1 <- padding(x, pad="per")
x2 <- padding(x, pad="zero")
x3 <- padding(x, pad="sym")
ts.plot(cbind(x,x1,x2,x3), col=1:4)

zejiang-unsw/WASP_1.0.0 documentation built on May 6, 2020, 7:49 p.m.