mindspore.ops.BlackmanWindow

class mindspore.ops.BlackmanWindow(periodic=True, dtype=mstype.float32)[source]

Blackman window function.

Refer to mindspore.ops.blackman_window() for more details.

Supported Platforms:

GPU CPU

Examples

>>> window_length = Tensor(10, mindspore.int32)
>>> blackman_window = ops.BlackmanWindow(periodic = True, dtype = mindspore.float32)
>>> output = blackman_window(window_length)
>>> print(output)
[-2.9802322e-08  4.0212840e-02  2.0077014e-01  5.0978714e-01
  8.4922993e-01  1.0000000e+00  8.4922981e-01  5.0978690e-01
  2.0077008e-01  4.0212870e-02]