This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder