spyrit.misc.walsh_hadamard.walsh2_Sļ
- spyrit.misc.walsh_hadamard.walsh2_S(X, S=None)[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.walsh2_S(X)