mindspore.ops.BartlettWindow

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

Bartlett window function.

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

Supported Platforms:

GPU CPU

Examples

>>> window_length = Tensor(5, mstype.int32)
>>> bartlett_window = ops.BartlettWindow(periodic=True, dtype=mstype.float32)
>>> output = bartlett_window(window_length)
>>> print(output)
[0.  0.4 0.8 0.8 0.4]