예제 #1
0
파일: test_basic.py 프로젝트: wrbrooks/VB3
 def test_djbfft(self):
     for i in range(2,14):
         n = 2**i
         x = range(n)
         y = fftpack.zfft(x,direction=-1)
         y2 = numpy.fft.ifft(x)
         assert_array_almost_equal(y,y2)
         y = fftpack.zrfft(x,direction=-1)
         assert_array_almost_equal(y,y2)
예제 #2
0
 def test_djbfft(self):
     for i in range(2,14):
         n = 2**i
         x = list(range(n))
         y = fftpack.zfft(x,direction=-1)
         y2 = numpy.fft.ifft(x)
         assert_array_almost_equal(y,y2)
         y = fftpack.zrfft(x,direction=-1)
         assert_array_almost_equal(y,y2)
예제 #3
0
 def test_djbfft(self):
     for i in range(2, 14):
         n = 2 ** i
         x = list(range(n))
         y = fftpack.zfft(x)
         y2 = numpy.fft.fft(x)
         assert_array_almost_equal(y, y2)
         y = fftpack.zrfft(x)
         assert_array_almost_equal(y, y2)
예제 #4
0
 def test_djbfft(self):
     for i in range(2,14):
         n = 2**i
         x = range(n)
         y = fftpack.zfft(x)
         y2 = numpy.fft.fft(x)
         assert_array_almost_equal(y,y2)
         y = fftpack.zrfft(x)
         assert_array_almost_equal(y,y2)