spyrit.misc.walsh_hadamard.fwalsh2_S

spyrit.misc.walsh_hadamard.fwalsh2_S(X, ind=True)[source]

Fast Walsh S-transform of X in ā€œ2Dā€

Args:

x (np.ndarray): n-by-n signal. n**2 should be a power of two. ind (bool, optional): True for sequency (default) ind (list, optional): permutation indices.

Returns:

np.ndarray: n-by-1 S-transformed signal

Examples:
>>> import spyrit.misc.walsh_hadamard as wh
>>> import numpy as np
>>> X = np.array([[1, 3, 0, 8],[7, 5, 1, 2],[2, 3, 6, 1],[4, 6, 8, 0]])
>>> wh.fwalsh2_S(X)