powered by
Passes vector through Hadamard orthogonal design matrix. Also known as the Fast Walsh-Hadamard transform.
fastHadamard(x, pad = FALSE)
A vector of the same length as x
vector of values to be transformed
optional logical asking whether vector not of length \(2^k\) should be padded with zeroes
Robin Evans
This is equivalent to multiplying by designMatrix(log2(length(x))) but should run much faster
designMatrix(log2(length(x)))
designMatrix, subsetMatrix.
designMatrix
subsetMatrix
fastHadamard(1:8) fastHadamard(1:5, pad=TRUE)
Run the code above in your browser using DataLab