Tensorflow.js tf.signal.hannWindow() Function
The tf.signal.hannWindow() function is used to generate a hann window.
Parameters: This function accepts single parameter which are illustrated below:
- windowLength: It is used to generate a Hann window.
Return Value: It returns the tf.Tensor1D.
Tensor [0, 0.1464466, 0.5, 0.8535534, 1, 0.8535534, 0.5, 0.1464466, 0]
Tensor [0, 1, 0]