distrb 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3fc51539b420f62a9cb220ffe30a1768d85df61617f0c7141a6b010ded9c6c31
4
+ data.tar.gz: 264e6e8821b8f2a7b80a8fa3cba8afb7ab2515a2469960737d5a42204db2cc75
5
+ SHA512:
6
+ metadata.gz: 338943757e3fcefebabea97afc6d21e4ede31f2e9ff249f6798d9131e23d42ab0d2a0415be3053149f30b63f95577339c5f951fff68d911f180cf47aadc0541e
7
+ data.tar.gz: ac0709706f97d1cda745cba9e17bbcc98e19a0689fcedfaa7b71b6a0f6dda46873303622b0511d29b8513914cf1bf68d7d8acb9829e1f6c2bb662882dd8b6101
data/.gitignore ADDED
@@ -0,0 +1,52 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ Gemfile.lock
46
+ .ruby-version
47
+ .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
51
+
52
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,20 @@
1
+ # Cop supports --auto-correct.
2
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
3
+ # SupportedStyles: nested, compact
4
+ Style/ClassAndModuleChildren:
5
+ EnforcedStyle: compact
6
+
7
+ # Cop supports --auto-correct.
8
+ # Configuration parameters: EnforcedStyle.
9
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
10
+ Style/MethodDefParentheses:
11
+ EnforcedStyle: require_no_parentheses
12
+
13
+ # Cop supports --auto-correct.
14
+ Style/RedundantSelf:
15
+ Enabled: false
16
+
17
+ Style/Documentation:
18
+ Exclude:
19
+ - 'spec/**/*'
20
+ - 'test/**/*'
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.2
5
+ before_install: gem install bundler -v 1.16.0
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in distrb.gemspec
8
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # More info at https://github.com/guard/guard#readme
4
+
5
+ ## Uncomment and set this to only include directories you want to watch
6
+ # directories %w(app lib config test spec features) \
7
+ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
8
+
9
+ # Note: The cmd option is now required due to the increasing number of ways
10
+ # rspec may be run, below are examples of the most common uses.
11
+ # * bundler: 'bundle exec rspec'
12
+ # * bundler binstubs: 'bin/rspec'
13
+ # * spring: 'bin/rspec' (This will use spring if running and you have
14
+ # installed the spring binstubs per the docs)
15
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
16
+ # * 'just' rspec: 'rspec'
17
+
18
+ guard :rspec, cmd: 'bundle exec rspec' do
19
+ require 'guard/rspec/dsl'
20
+ dsl = Guard::RSpec::Dsl.new(self)
21
+
22
+ # Feel free to open issues for suggestions and improvements
23
+
24
+ # RSpec files
25
+ rspec = dsl.rspec
26
+ watch(rspec.spec_helper) { rspec.spec_dir }
27
+ watch(rspec.spec_support) { rspec.spec_dir }
28
+ watch(rspec.spec_files)
29
+
30
+ # Ruby files
31
+ ruby = dsl.ruby
32
+ dsl.watch_spec_files_for(ruby.lib_files)
33
+ end
34
+
35
+ guard :rubocop do
36
+ watch(/.+\.rb$/)
37
+ watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
38
+ end
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Arai Hiroki
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # distrb
2
+
3
+ This gem is probability distribution for Ruby.
4
+ Currently, this aims to sample from some distributions.
5
+
6
+ ## Installation
7
+
8
+ ```ruby
9
+ gem 'distrb'
10
+ ```
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install distrb
19
+
20
+ ## Usage
21
+
22
+ > dist = Distrb::Uniform.new
23
+ > dist.sample # => 0.31009806817895547
24
+
25
+ That's all!
26
+
27
+ Supported probabiliry distributions: [Distrb::Uniform](lib/distrb/uniform.rb), [Distrb::Normal](lib/distrb/normal.rb), [Distrb::Gamma](lib/distrb/gamma.rb), [Distrb::Beta](lib/distrb/beta.rb)
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hiroara/distrb.
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'distrb'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/distrb.gemspec ADDED
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'distrb/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'distrb'
9
+ spec.version = Distrb::VERSION
10
+ spec.authors = ['Hiroki Arai']
11
+ spec.email = ['hiroara62@gmail.com']
12
+
13
+ spec.summary = 'Probability Distribution for Ruby'
14
+ spec.description = 'This library implements probability distributions.'
15
+ spec.homepage = 'https://github.com/hiroara/distrb'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_development_dependency 'bundler', '~> 1.16'
25
+ spec.add_development_dependency 'guard', '~> 2.14.0'
26
+ spec.add_development_dependency 'guard-rspec', '~> 4.7.0'
27
+ spec.add_development_dependency 'guard-rubocop', '~> 1.3.0'
28
+ spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'rspec', '~> 3.0'
30
+ spec.add_development_dependency 'rubocop', '~> 0.52.0'
31
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Sampling from Beta distribution using two Gamma ditributions
5
+ # Porting from Numpy
6
+ # See: https://github.com/numpy/numpy/blob/69fb4f160518ac347efc63dc17ebdf81285c1958/numpy/random/mtrand/distributions.c#L219-L224
7
+ #
8
+ class Distrb::Beta::TGV
9
+ def initialize alpha, beta
10
+ @gamma_alpha = Distrb::Gamma.new alpha, 1
11
+ @gamma_beta = Distrb::Gamma.new beta, 1
12
+ end
13
+
14
+ def sample
15
+ r1 = @gamma_alpha.sample
16
+ r2 = @gamma_beta.sample
17
+ r1 / (r1 + r2)
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Beta distribution
5
+ # See: https://en.wikipedia.org/wiki/Beta_distribution
6
+ #
7
+ class Distrb::Beta < Distrb::Distribution
8
+ require_relative './beta/tgv'
9
+
10
+ attr_reader :sampler
11
+
12
+ def initialize alpha, beta
13
+ @sampler = TGV.new alpha, beta
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Base class of probability distribution
5
+ # Currently, this class only supports sampling feature.
6
+ #
7
+ class Distrb::Distribution
8
+ def sampler
9
+ raise NotImplementedError
10
+ end
11
+
12
+ def sample
13
+ self.sampler.sample
14
+ end
15
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Internal class for Marsaglia and Tsang's method.
5
+ #
6
+ # Actual implementation of the algorithm for `alpha < 1`.
7
+ #
8
+ class Distrb::Gamma::MarsagliaTsang::HighAlpha
9
+ def initialize alpha
10
+ @alpha = alpha
11
+ @normal = Distrb::Normal.new
12
+ @uniform = Distrb::Uniform.new
13
+
14
+ @d = @alpha - 1.0 / 3.0
15
+ @c = 1.0 / Math.sqrt(9.0 * @d)
16
+ end
17
+
18
+ def sample
19
+ loop do
20
+ v = 0.0
21
+ until v.positive?
22
+ x = @normal.sample
23
+ v = 1.0 + @c * x
24
+ end
25
+ v **= 3
26
+ u = @uniform.sample
27
+ return @d * v if should_stop? u, x, v
28
+ end
29
+ end
30
+
31
+ private
32
+
33
+ def should_stop? u, x, v
34
+ u < 1.0 - 0.0331 * x**4 ||
35
+ Math.log(u) < 0.5 * x**2 + @d * (1.0 - v + Math.log(v))
36
+ end
37
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Internal class for Marsaglia and Tsang's method.
5
+ #
6
+ # The method cannot be applied for `alpha < 1` without do anything.
7
+ # (Where `alpha` is shape parameter of Gamma distribution.)
8
+ # So this class achieves it with sampling from other Gamma distribution
9
+ # with `alpha` plus 1 and modifying it.
10
+ #
11
+ class Distrb::Gamma::MarsagliaTsang::LowAlpha
12
+ def initialize alpha
13
+ @alpha = alpha
14
+ @gamma = Distrb::Gamma.new @alpha + 1
15
+ @uniform = Distrb::Uniform.new
16
+ end
17
+
18
+ def sample
19
+ x = @gamma.sample
20
+ u = @uniform.sample
21
+ x * u**(1 / @alpha)
22
+ end
23
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Marsaglia and Tsang's method to sample from Gamma distribution
5
+ # See: https://dl.acm.org/citation.cfm?id=358414
6
+ #
7
+ class Distrb::Gamma::MarsagliaTsang
8
+ require_relative './marsaglia_tsang/high_alpha'
9
+ require_relative './marsaglia_tsang/low_alpha'
10
+
11
+ def initialize shape, rate = 1
12
+ @sampler = shape < 1 ? LowAlpha.new(shape) : HighAlpha.new(shape)
13
+ @rate = rate
14
+ end
15
+
16
+ def sample
17
+ @sampler.sample / @rate
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Gamma distribution
5
+ # See: https://en.wikipedia.org/wiki/Gamma_distribution
6
+ #
7
+ class Distrb::Gamma < Distrb::Distribution
8
+ require_relative './gamma/marsaglia_tsang'
9
+
10
+ attr_reader :sampler
11
+
12
+ def initialize alpha, beta = 1
13
+ @sampler = MarsagliaTsang.new alpha, beta
14
+ end
15
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Box-Muller transform to sample from Normal distribution
5
+ # See: https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform
6
+ #
7
+ class Distrb::Normal::BoxMullerTransform
8
+ def initialize
9
+ @uniform = Distrb::Uniform.new
10
+ end
11
+
12
+ def sample
13
+ x = @uniform.sample
14
+ y = @uniform.sample
15
+ Math.sqrt(-2 * Math.log(x)) * Math.cos(2 * Math::PI * y)
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Normal distribution
5
+ # See: https://en.wikipedia.org/wiki/Normal_distribution
6
+ #
7
+ class Distrb::Normal < Distrb::Distribution
8
+ require_relative './normal/box_muller_transform'
9
+
10
+ attr_reader :sampler
11
+
12
+ def initialize
13
+ @sampler = BoxMullerTransform.new
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Mersenne Twister algorithm to sample from Uniform distribution
5
+ # See: https://en.wikipedia.org/wiki/Mersenne_Twister
6
+ #
7
+ # This implementation uses Random class of Ruby core.
8
+ # See: http://ruby-doc.org/core-2.5.0/Random.html
9
+ #
10
+ class Distrb::Uniform::MersenneTwister
11
+ def initialize
12
+ @random = Random.new
13
+ end
14
+
15
+ def sample *args
16
+ @random.rand(*args)
17
+ end
18
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Uniform distribution
5
+ # See: https://en.wikipedia.org/wiki/Uniform_distribution_(continuous)
6
+ #
7
+ class Distrb::Uniform < Distrb::Distribution
8
+ require_relative './uniform/mersenne_twister'
9
+
10
+ attr_reader :sampler
11
+
12
+ def initialize
13
+ @sampler = MersenneTwister.new
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Distrb
4
+ VERSION = '0.1.0'
5
+ end
data/lib/distrb.rb ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Top-level module of distrb gem.
5
+ #
6
+ module Distrb
7
+ require_relative './distrb/version'
8
+ require_relative './distrb/distribution'
9
+ require_relative './distrb/uniform'
10
+ require_relative './distrb/normal'
11
+ require_relative './distrb/gamma'
12
+ require_relative './distrb/beta'
13
+ end
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: distrb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Hiroki Arai
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-02-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: guard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.14.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.14.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: guard-rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 4.7.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 4.7.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard-rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.3.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.3.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.52.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.52.0
111
+ description: This library implements probability distributions.
112
+ email:
113
+ - hiroara62@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".rubocop.yml"
121
+ - ".travis.yml"
122
+ - Gemfile
123
+ - Guardfile
124
+ - LICENSE
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - distrb.gemspec
130
+ - lib/distrb.rb
131
+ - lib/distrb/beta.rb
132
+ - lib/distrb/beta/tgv.rb
133
+ - lib/distrb/distribution.rb
134
+ - lib/distrb/gamma.rb
135
+ - lib/distrb/gamma/marsaglia_tsang.rb
136
+ - lib/distrb/gamma/marsaglia_tsang/high_alpha.rb
137
+ - lib/distrb/gamma/marsaglia_tsang/low_alpha.rb
138
+ - lib/distrb/normal.rb
139
+ - lib/distrb/normal/box_muller_transform.rb
140
+ - lib/distrb/uniform.rb
141
+ - lib/distrb/uniform/mersenne_twister.rb
142
+ - lib/distrb/version.rb
143
+ homepage: https://github.com/hiroara/distrb
144
+ licenses: []
145
+ metadata: {}
146
+ post_install_message:
147
+ rdoc_options: []
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ requirements: []
161
+ rubyforge_project:
162
+ rubygems_version: 2.7.3
163
+ signing_key:
164
+ specification_version: 4
165
+ summary: Probability Distribution for Ruby
166
+ test_files: []