bartlett

Contents

bartlett#

class saiunit.math.bartlett(M)#

Return a Bartlett window of size M.

JAX implementation of numpy.bartlett().

Parameters:

M (int) – The window size.

Return type:

Array

Returns:

An array of size M containing the Bartlett window.

Examples

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

See also