extendLength: Extend the length of a signal or matrix

Description Usage Arguments Value Author(s) See Also Examples

Description

Extend the length of a signal or matrix by row

Usage

1
extendLength(x, addLength = NULL, method = c("reflection", "open", "circular"), direction = c("right", "left", "both"))

Arguments

x

a vector or matrix with column with each column as a signal

addLength

the length to be extended

method

three methods available, c("reflection", "open", "circular"). By default, it is "reflection".

direction

three options available: c("right", "left", "both")

Value

return the extended vector or matrix.

Author(s)

Pan Du

See Also

extendNBase

Examples

1
2
	# a = matrix(rnorm(9), 3)
	# extendLength(a, 3, direction='right') 	## not exposed function

Example output

Loading required package: waveslim

waveslim: Wavelet Method for 1/2/3D Signals (version = 1.7.5)

MassSpecWavelet documentation built on Nov. 8, 2020, 5:36 p.m.