def test_complex(self):
        x = np.zeros(16, np.complex128)
        x[0] = 1.0 + 2.0j
        f, p = periodogram(x)
        assert_allclose(f, fftpack.fftfreq(16, 1.0))
        q = 5.0*np.ones(16)/16.0
        q[0] = 0
        assert_allclose(p, q)
dataset/ETHPy150Open scipy/scipy/scipy/signal/tests/test_spectral.py/TestPeriodogram.test_complex/original