def test_blackman():
    A = np.blackman((INT_OVERFLOW))
    assert A.shape == (INT_OVERFLOW, )
Example #2
0
def test_blackman():
    data = np.blackman(INT_OVERFLOW)
    ind = int(INT_OVERFLOW / 6)
    ref = 0.42 - 0.5*math.cos(2*math.pi*ind/INT_OVERFLOW) \
        + 0.08*math.cos(4*math.pi*ind/INT_OVERFLOW)
    assert_almost_equal(data[ind], ref, rtol=1e-3, atol=1e-5)