Skip to content

Instantly share code, notes, and snippets.

View coolbutuseless's full-sized avatar

mikefc coolbutuseless

View GitHub Profile
#!/usr/bin/env julia
# straight translation of some python code.
# python code (using pypy) takes less than 1 second/iteration (core i7 imac)
# After removing globals and typing code, julia code takes same time as pypy code.
# Example pairs.csv file: https://dl.dropboxusercontent.com/u/68676/pairs.zip
function cdf(x::Float64)
s = x
t = 0.0