Remove Array Elements Using Tukey's Method
This gem adds a simple tukeyized
to the Array
class.
The method returns a copy of the array without extreme values.
It uses the Tukey's method.
require 'tukeyized'
puts [1, 6, 3, 8888, 3, 2, 8, -19292].tukeyized
Prints:
1, 6, 3, 3, 2, 8
That's it.
How to contribute
Read these guidelines. Make sure your build is green before you contribute your pull request. You will need to have Ruby 3.0+ and Bundler installed. Then:
bundle update
bundle exec rake
If it's clean and you don't see any error messages, submit your pull request.