diff options
Diffstat (limited to 'macros/ifwht.sci')
-rw-r--r-- | macros/ifwht.sci | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/ifwht.sci b/macros/ifwht.sci index 163c032..c1517ac 100644 --- a/macros/ifwht.sci +++ b/macros/ifwht.sci @@ -1,4 +1,27 @@ function y= ifwht(x, varargin) +// Compute the inverse Walsh-Hadamard transform of x using the Fast Walsh-Hadamard Transform (FWHT) algorithm +// Calling Sequence +// ifwht (x) +// ifwht (x, n) +// ifwht (x, n, order) +//Parameters +//x: real or complex valued scalar or vector +//n: Input is truncated or extended to have a length of n +//order: Specifies the order in which the returned inverse Walsh-Hadamard transform +//Description +//Compute the inverse Walsh-Hadamard transform of x using the Fast Walsh-Hadamard Transform (FWHT) algorithm. If the input is a matrix, the inverse FWHT is calculated along the columns of x. +//The number of elements of x must be a power of 2; if not, the input will be extended and filled with zeros. If a second argument is given, the input is truncated or extended to have length n. +//The third argument specifies the order in which the returned inverse Walsh-Hadamard transform coefficients should be arranged. The order may be any of the following strings: +// +//"sequency" +//The coefficients are returned in sequency order. This is the default if order is not given. +// +//"hadamard" +//The coefficients are returned in Hadamard order. +// +//"dyadic" +//The coefficients are returned in Gray code order. + funcprot(0); rhs= argn(2); |