astroML/astroML — pull request #6 by juliantaylor (2012-11-14 09:37:27+00:00)
Title: minor performance improvement to freedman_bin_width

sort is significantly faster on large arrays
also make use of the sorted array during minimum and maximum
determination

its only significant for arrays with several million entries, but there its about double as fast.

one could also just use numpy.percentiles if one requires numpy > 1.5.0