distribution icon indicating copy to clipboard operation
distribution copied to clipboard

Statistical Distributions multi library wrapper. Uses Ruby by default and C (statistics2/GSL) or Java extensions where available.

Results 15 distribution issues
Sort by recently updated
recently updated
newest added

when trying to run `bundle exec derailed bundle:mem` ``` /distribution-0.7.3/lib/distribution/normal/ruby.rb:2:in `': Normal is not a module (TypeError) ``` block at top of said file: ``` module Distribution module Normal module...

I have an array of data `x=[0.1, 0.04, 0.3]` How can I use this library to estimate alpha and beta of a beta distribution?

This PR contains changes that were merged into the SciRuby fork of `distribution`. Please notice that `.travis.yml` is updated to reflect that [support for Ruby 2.4 was dropped recently](https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/). Thanks

Each module should have a method to return an array of random numbers, or adapts #rng to return an array.

Passing a fixed seed is necessary to allow debugging of functions using Distribution sampling. ``` ruby Distribution::Normal.rng(0, 1, 1) == Distribution::Normal.rng(0, 1, 1) # => false ``` Should return `true`...

I don't think this line is required. Or please let me know if I miss something.

2.1.6 :112 > Distribution::ChiSquare.q_chi2(4000, 1487) => 1.1715358426793223 2.1.6 :113 > Distribution::ChiSquare.q_chi2(4000, 1488) => 1.287980205519492 2.1.6 :114 > Distribution::ChiSquare.q_chi2(4000, 1489) => 1.0610471112556463 2.1.6 :115 > Distribution::ChiSquare.q_chi2(4000, 1490) => 1.7505434400435371 2.1.6 :116...

Hi again, After adding the requirement for weibull, I have now two more tests failing: ``` Failures: 1) Distribution::Exponential rng should default to Kernel#rand if no :random is given Failure/Error:...

Hi, Currently, when I run `rspec`, I get the following error: ``` /home/boutil/src/ruby/distribution/distribution/spec/weibull_spec.rb:5:in `': uninitialized constant Distribution::Weibull (NameError) from /usr/lib/ruby/vendor_ruby/rspec/core/configuration.rb:1327:in `load' from /usr/lib/ruby/vendor_ruby/rspec/core/configuration.rb:1327:in `block in load_spec_files' from /usr/lib/ruby/vendor_ruby/rspec/core/configuration.rb:1325:in `each' from...