spyrit.misc.statistics.stat_fwalsh_S_stl10

spyrit.misc.statistics.stat_fwalsh_S_stl10(stat_root=PosixPath('stats'), data_root=PosixPath('data'), img_size=64, batch_size=1024)[source]

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

Args:

X (torch.tensor): input image with shape (*, n, n). `n`**2 should be a power of two.

Returns:

torch.tensor: S-transformed signal with shape (*, n, n)

Examples:

# >>> import spyrit.misc.statistics as st # >>> st.stat_fwalsh_S_stl10()