파이썬 (66) 썸네일형 리스트형 [Py|수치해석] 무식하게 DFT DFT (discrete fourier transformation), FFT가 이것보다 효율적인 거란 말이지. 알았어 다음 포스팅은 그거다. DFT의 정의는 http://en.wikipedia.org/wiki/Fast_Fourier_transform 에서. #!/usr/bin/env python ### DFT Bruteforce ### didn't check if this coding gives the right answer. I just followed the ### definition. ### by DwYoon N_DATA = 1024 #N_DATA = 16 import cmath import random # populate raw data using random generator # you can .. [Py|초급] 달팽이 이차원배열, 나머지연산과 논리연산 #!/usr/bin/env python # Daum sinjisik # Author : DwYoon ################################################################## print "---------------------" for i in xrange(12): for j in xrange(12): print (((i+2)/2)%2)^(((j)/2)%2), print ################################################################## print "---------------------" for i in xrange(12): for j in xrange(12): print (((i+3)/3)%2)^(((j).. 이전 1 ··· 6 7 8 9 다음