Skip to content

Instantly share code, notes, and snippets.

@jackdreilly
Forked from anonymous/sft.py
Created May 3, 2012 21:36
Show Gist options
  • Save jackdreilly/2589706 to your computer and use it in GitHub Desktop.
Save jackdreilly/2589706 to your computer and use it in GitHub Desktop.
some different implementations
def sft(x,N=999999999):
return map(fft,[x]*N)[0]
def sft(x):
fft_x = fft(x)
stock_prices = [ticker(stock) for stock in market]
if stock_prices == fft_x:
return stock_prices
else:
return fft_x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment