fastHadamard {rje} | R Documentation |
Compute fast Hadamard-transform of vector
Description
Passes vector through Hadamard orthogonal design matrix. Also known as the Fast Walsh-Hadamard transform.
Usage
fastHadamard(x, pad = FALSE)
Arguments
x |
vector of values to be transformed |
pad |
optional logical asking whether vector not of length |
Details
This is equivalent to multiplying by designMatrix(log2(length(x)))
but should run much faster
Value
A vector of the same length as x
Author(s)
Robin Evans
See Also
Examples
fastHadamard(1:8)
fastHadamard(1:5, pad=TRUE)
[Package rje version 1.12.1 Index]