Мне все из примера понятно, но вот этого я не понимаю:
Код: Выделить всё
ShortTimeFFT(np.ones(6),2,fs=1).upper_border_begin(50)
>>> (45,24) # Just as in the example
ShortTimeFFT(scipy.signal.windows.hann(6),2,fs=1).upper_border_begin(50)
>>> (47,25) # Same window size but different result
ShortTimeFFT(np.hstack(([.5],scipy.signal.windows.hann(6)[1:-1],[.5])),2,fs=1).upper_border_begin(50)
>>> (45,24) # replacing the 0. border weights of the hann window brings us back to the example result
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/798 ... ndow-value
Мобильная версия