Signal
Signal processing utilities that make complete sense
butterworth
butterworth (waveform_array, freq_range, btype, fs=125, order=2)
Type | Default | Details | |
---|---|---|---|
waveform_array | |||
freq_range | |||
btype | |||
fs | int | 125 | |
order | int | 2 | Recommend playing around with the order as well |
stft
stft (signal_array, n_fft=256, win_length=250, pad_mode='reflect', pad_win_length_to_nfft=True, center=False, hop_length=125, normalized=True, decibel_scale=False, return_complex=True, onesided=True, channel_stft_means=None, channel_stft_stds=None)
in: [bs x n_vars x max_seq_len] out: [bs x n_vars x n_fft // 2 + 1 x stft_len]
Type | Default | Details | |
---|---|---|---|
signal_array | |||
n_fft | int | 256 | number of ffts to perform |
win_length | int | 250 | window of ffts |
pad_mode | str | reflect | |
pad_win_length_to_nfft | bool | True | indicator to pad the end of the sequence with 0s for nfft-win_legnth to ensuure correct size output |
center | bool | False | |
hop_length | int | 125 | |
normalized | bool | True | |
decibel_scale | bool | False | |
return_complex | bool | True | |
onesided | bool | True | |
channel_stft_means | NoneType | None | precalculated stft channel means |
channel_stft_stds | NoneType | None | precalculated stft channel stds |