Skip to content

Instantly share code, notes, and snippets.

View superlucky8848's full-sized avatar

superlucky superlucky8848

  • SuperLucky Works
View GitHub Profile
@odashi
odashi / fourier.py
Created March 9, 2014 18:59
離散フーリエ変換。
# fourier.py
# This source contains below:
# * Discrete Fourier Transform (DFT)
# * Fast Fourier Transform (FFT)
# * Discrete Co-sine Transform Type-II (DCT2)
import math
def dft(samples):
n = len(samples)