rwavelet (version 0.4.0)

cubelength: Find length and dyadic length of square array.

Description

3-D counterpart of Donoho's quadlength utilized by the 2D pair. Original matlab code Vicki Yang and Brani Vidakovic.

Usage

cubelength(x)

Arguments

x

3-d array; dim(n,n,n), n = 2^J (hopefully).

Value

n length(x).

J least power of two greater than n.

Examples

Run this code
# NOT RUN {
cubelength(array(1:3, c(2,2,2)))
# }

Run the code above in your browser using DataLab