fastHadamard | R Documentation |
Passes vector through Hadamard orthogonal design matrix. Also known as the Fast Walsh-Hadamard transform.
fastHadamard(x, pad = FALSE)
x |
vector of values to be transformed |
pad |
optional logical asking whether vector not of length 2^k should be padded with zeroes |
This is equivalent to multiplying by designMatrix(log2(length(x)))
but should run much faster
A vector of the same length as x
Robin Evans
designMatrix
, subsetMatrix
.
fastHadamard(1:8) fastHadamard(1:5, pad=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.