jax.numpy.bartlett#

jax.numpy.bartlett(M)[source]#

傳回大小為 M 的 Bartlett 視窗。

`numpy.bartlett()` 的 JAX 實作。

參數:

M (int) – 視窗大小。

傳回值:

包含 Bartlett 視窗的大小為 M 的陣列。

傳回型別:

陣列

範例

>>> with jnp.printoptions(precision=2, suppress=True):
...   print(jnp.bartlett(4))
[0.   0.67 0.67 0.  ]

另請參閱