Learn R Programming

MassSpecWavelet (version 1.38.0)

extendNBase: Extend the row number of a matrix as the exponential of base N

Description

Extend the data as the exponential of base N by increasing row number.

Usage

extendNBase(x, nLevel=1, base=2, ...)

Arguments

x
data matrix
nLevel
the level of DWT decomposition. Basically, it is equivalent to changing the 'base' as base\^nLevel
base
the base, 2 by default
...
other parameters of used by extendLength

Value

Return a extended matrix

Details

The method 'open' is padding the the matrix with the last row.

See Also

extendLength

Examples

Run this code
	# a = matrix(rnorm(9), 3)
	# extendNBase(a)	## not exposed function

Run the code above in your browser using DataLab