Skip to content

Instantly share code, notes, and snippets.

View mro's full-sized avatar
💭
Incidentally I am of the opinion that billion-portfolios must be resocialized.

Marcus Rohrmoser mro

💭
Incidentally I am of the opinion that billion-portfolios must be resocialized.
View GitHub Profile
#
# Bayern2 Programmseite abgrasen
#
require 'time'
# sudo gem install scrapi
#
# http://exceptionz.wordpress.com/2009/11/03/scrapi-on-snow-leopard/
require 'scrapi'
require 'cgi'
require 'sqlite3'
@mro
mro / fft.rb
Created April 4, 2011 23:46
Discrete Fast Fourier Transform from 'Meyberg, Vachenauer: Hoehere Mathematik II, Springer Berlin, 1991, page 332'
#!/usr/bin/env ruby
require 'complex'
class Array
# DFT and inverse.
#
# Algorithm from
# 'Meyberg, Vachenauer: Hoehere Mathematik II, Springer Berlin, 1991, page 332'
#
# See http://blog.mro.name/2011/04/simple-ruby-fast-fourier-transform/