Learn R Programming

wavethresh (version 4.7.3)

levarr: Subsidiary routine that generates a particular permutation

Description

Not intended for casual user use. This function is used to provide the partition to reorder wst.object into wd.object (nondecimated time ordered) objects.

Usage

levarr(v, levstodo)

Value

A permutation of the v vector according to the number of levels that need handling

Arguments

v

the vector to permute

levstodo

the number of levels associated with the current level in the object you wish to permute

Author

G P Nason

Details

Description says all

See Also

getarrvec, convert.wd, convert.wst

Examples

Run this code
levarr(1:4, 3)
# [1] 1 3 2 4

Run the code above in your browser using DataLab