PyTorch torch.blackman_window 関数


Pytorch torch 参考手册Pytorch torch リファレンスマニュアル

torch.blackman_windowPyTorch で Blackman ウィンドウを生成するための関数です。Blackman ウィンドウは余弦結合窓関数の一種で、Hamming ウィンドウよりも優れたサイドローブ抑圧性能を持ち、スペクトル解析でよく使用されます。

関数定義

torch.blackman_window(window_length, periodic=True, dtype=None, layout=torch.strided, device=None, requires_grad=False)

使用例

例

import torch

# 長さ 512 の Blackman ウィンドウを作成
window = torch.blackman_window(512)
print(Blackman ウィンドウの形状:, window.shape)
print(ウィンドウの最初の5つの値:, window[:5])

Pytorch torch 参考手册Pytorch torch リファレンスマニュアル

その他の拡張機能