View source: R/fwht.R View source: R/RcppExports.R
ifwht | R Documentation |
Compute the (inverse) Fast Walsh-Hadamard transform of a signal.
ifwht(x, n = NROW(x), ordering = c("sequency", "hadamard", "dyadic"))
fwht(x, n = NROW(x), ordering = c("sequency", "hadamard", "dyadic"))
x |
input data, specified as a numeric vector or matrix. In case of a
vector it represents a single signal; in case of a matrix each column is a
signal. |
n |
transform length, specified as a positive integer scalar. Default:
|
ordering |
order of the Walsh-Hadamard transform coefficients, one of:
|
(Inverse) Fast Walsh Hadamard transform, returned as a vector or matrix.
Mike Miller.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
https://en.wikipedia.org/wiki/Hadamard_transform
https://en.wikipedia.org/wiki/Fast_Walsh-Hadamard_transform
x <- c(19, -1, 11, -9, -7, 13, -15, 5)
X <- fwht(x)
all.equal(x, ifwht(X))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.