JuliaLang/julia — pull request #655 by HarlanH (2012-04-01 14:22:26+00:00)
Title: quantiles

There's currently a median() function in statistics.jl, but no general quantile() function. This seems to work. I've included variants for scalar and vector quantiles, and for the most common cases (quart, quint, dec).

Note that there are many ways of implementing quantiles. This is the one that's the default for R and S (I did a naive translation of the R implementation), but at some point we'll want to revisit this and support some of the other common definitions.