Walsh Transform
walsh(n, k)
Returns the
k
th Walsh function of order
n
.
Arguments:
n
is an integer, the order of the walsh function (implying 2
n
data points). 0
≤ n ≤
12.
k
is an integer, the index of the transformed value. 0 ≤
k
≤ 2
n
− 1.