3-D counterpart of Donoho's quadlength utilized by the 2D pair. Original matlab code Vicki Yang and Brani Vidakovic.
cubelength(x)
3-d array; dim(n,n,n), n = 2^J (hopefully).
n length(x).
n
J least power of two greater than n.
J
# NOT RUN { cubelength(array(1:3, c(2,2,2))) # }
Run the code above in your browser using DataLab