unicode_plot.rb icon indicating copy to clipboard operation
unicode_plot.rb copied to clipboard

Support JRuby

Open mrkn opened this issue 4 years ago • 2 comments

For supporting JRuby, we first need to let enumerable-statistics support JRuby.

mrkn avatar Jan 11 '20 02:01 mrkn

https://github.com/mrkn/enumerable-statistics/issues/20

mrkn avatar Jan 11 '20 02:01 mrkn

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.

schneems avatar Sep 15 '20 18:09 schneems