unicode_plot.rb
unicode_plot.rb copied to clipboard
Support JRuby
For supporting JRuby, we first need to let enumerable-statistics support JRuby.
https://github.com/mrkn/enumerable-statistics/issues/20
I think this could be somewhat related to https://github.com/red-data-tools/unicode_plot.rb/issues/31. If we made a pure ruby version of this library then it would support Jruby out of the box. Then the only two other places (i think) in here that are actually using enumerable-statistics
are Array#histogram and Array#percentile.
I've already taken the liberty of writing a pure ruby version of Array#histogram here github.com/zombocom/mini_histogram. It matches the interface provided by enumerable-statistics on purpose. Array#percentile would be pretty easy to code up.