@staticmethod
def _np_hann_periodic_window(length):
    if (length == 1):
        return np.ones(1)
    odd = (length % 2)
    if (not odd):
        length += 1
    window = (0.5 - (0.5 * np.cos((((2.0 * np.pi) * np.arange(length)) / (length - 1)))))
    if (not odd):
        window = window[:(- 1)]
    return window
@staticmethod
def _np_hann_periodic_window(length):
    if (length == 1):
        return np.ones(1)
    odd = (length % 2)
    if (not odd):
        length += 1
    window = (0.5 - (0.5 * np.cos((((2.0 * np.pi) * np.arange(length)) / (length - 1)))))
    if (not odd):
        window = window[:(- 1)]
    return window