padding: Padding data to dyadic sample size

View source: R/dwt_vt.R

paddingR Documentation

Padding data to dyadic sample size

Description

Padding data to dyadic sample size

Usage

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

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 documentation built on Dec. 23, 2024, 11:46 p.m.