I'd like to be able to get averages, medians, percentiles, etc. I've been looking all over and can't find anything like it. I realize that Ruby isn't used very much in the scientific world, but there has to exist at least a very basic library in Ruby that does math, right?
How about ruby narray?
http://narray.rubyforge.org/
If you look at the methods, there is a section on statistics that covers your use cases:
http://narray.rubyforge.org/SPEC.en
You might also want to look at the ruby bindings to the GSL:
http://ruby-gsl.sourceforge.net/
SciRuby is working on this. We're actually working on NMatrix as a replacement for NArray. The most relevant library for you, however, would likely be Statsample.
And, as mentioned by JoshAdel, Ruby/GSL is a pretty useful gem. We have a fork of it in SciRuby's github account which supports NMatrix instead of NArray.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With