spyrit.misc.walsh_hadamard.walsh_G
- spyrit.misc.walsh_hadamard.walsh_G(x, G=None)[source]
Return the Walsh S-transform of x
- Args:
x (np.ndarray): n-by-1 signal. n+1 should be a power of two.
- Returns:
np.ndarray: n-by-1 S-transformed signal
- Examples:
Walsh-ordered S-transform of a 15-by-1 signal
>>> x = np.random.rand(15,1) >>> s = walsh_S(x)