ifwht {gsignal} | R Documentation |
Fast Walsh-Hadamard Transform
Description
Compute the (inverse) Fast Walsh-Hadamard transform of a signal.
Usage
ifwht(x, n = NROW(x), ordering = c("sequency", "hadamard", "dyadic"))
fwht(x, n = NROW(x), ordering = c("sequency", "hadamard", "dyadic"))
Arguments
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:
|
Value
(Inverse) Fast Walsh Hadamard transform, returned as a vector or matrix.
Author(s)
Mike Miller.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
References
https://en.wikipedia.org/wiki/Hadamard_transform
https://en.wikipedia.org/wiki/Fast_Walsh-Hadamard_transform
Examples
x <- c(19, -1, 11, -9, -7, 13, -15, 5)
X <- fwht(x)
all.equal(x, ifwht(X))