rubystats 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 594c482d4bcbf6954516475851e5d8361eb171e6
4
- data.tar.gz: 89bb13f0241a4a42439099c37d4f2500f64b8519
3
+ metadata.gz: b5ce2923f406326fbac5468f2d90b3dd65ac7260
4
+ data.tar.gz: 71e668ad6712572d8e33145b2f6689bab25a9d03
5
5
  SHA512:
6
- metadata.gz: 34a76aa78895d6fc605660d72b8e7602c1dd85150132b1bef2969c438cac22c1c91425cf1c3599b3202a43bc5a644444c31e30d9d181c8894cdfa2a70755da89
7
- data.tar.gz: 12836502065954197f8c097060794f968d5845e9e9460c6ce175b91df04a569050f26a69855bee7803136661774c0aa39921aff2fe57f89b95de53ef4089782e
6
+ metadata.gz: 4f56dbac4cb7ca98f9fea5932e22611d2a3631ba23316a90a25d26a30f3bf8005ab98caf2a7eb8efb6aa1ae8c161b6800c05af33ddee8e17950c8f8dc28b5e40
7
+ data.tar.gz: 4c9e4e0c71ce1aa6e5ad903a69bfe5c7051e6c3cd1f479d5708ce8e20ce4040cf52f009ce81bb272d7805000cd3d27c40bdb67caa84453a5e2f642074c123a12
@@ -0,0 +1,21 @@
1
+ on: [push, pull_request]
2
+
3
+ jobs:
4
+ test:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ matrix:
8
+ ruby-version: ['2.7', '3.0', '3.1', '3.2']
9
+ gemfile:
10
+ - Gemfile
11
+ env:
12
+ BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - name: Set up Ruby
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: ${{ matrix.ruby-version }}
19
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
20
+ - name: Run tests
21
+ run: bundle exec rake
data/History.txt CHANGED
@@ -1,3 +1,34 @@
1
+ === 0.3.0 / 2023-04-03
2
+ * Add support for ruby 3.1
3
+
4
+ === 0.3.0 / 2017-12-01
5
+ * Uniform distribution
6
+ * added gamma distribution (mean, variance, pdf, cdf, rng)
7
+ * implemented multivariate normal distribution (mean,pdf,rng)
8
+ * cleaned up the code for the binomial distribution and created a module for discrete probability distributions
9
+ * implementation of poisson distribution (mean,variance,pdf,cdf,icdf,rng)
10
+ * fixed rng in Binomial and Poisson and added tests for their rng functions
11
+ * rewrote factorial function because of error with too many stack levels
12
+ * added student t distribution (mean, variance, pdf, rng)
13
+ * added weibull implementation (mean,pdf,cdf,icdf,rng)
14
+ * fix to prevent integer calculations when distributions are initialized (#10)
15
+ * Update beta_distribution.rb
16
+ * Added rng for beta distribution
17
+ * Corrected PDF calculation in README.rdoc
18
+
19
+ === 0.2.6 / 2017-07-23
20
+ * Preserve the old API by setting constants manually
21
+
22
+ === 0.2.5 / 2016-07-08
23
+ * refactoring to reduce warnings
24
+ * reactivate and fix test for normal distribution
25
+ * Use attr_reader to avoid initialization warnings.
26
+ * add test for normal distributed random numbers
27
+
28
+ === 0.2.4 / 2016-01-31
29
+ * raise error when normal initialised with bad sigma
30
+ * changes for CI tests
31
+
1
32
  === 0.2.3 / 2008-07-06
2
33
  * Fixing bug #21100 - problem with Beta distribution calculations when p and q values are small.
3
34
  * Minor code cleanup for readability in a few places.
@@ -1,3 +1,3 @@
1
1
  module Rubystats
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
data/rubystats.gemspec CHANGED
@@ -20,5 +20,11 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_development_dependency("minitest", ">= 4.2", "< 5.0")
22
22
  s.add_development_dependency("hoe", ">= 1.7.0")
23
+ if RUBY_VERSION >= "3.1"
24
+ # matrix was removed from default gems in Ruby 3.1, see
25
+ # https://github.com/ruby/ruby/pull/4530 and https://stdgems.org/
26
+ s.add_runtime_dependency("matrix")
27
+ end
28
+
23
29
  end
24
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubystats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Scharrenbroich
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-12-02 00:00:00.000000000 Z
13
+ date: 2023-04-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest
@@ -54,8 +54,8 @@ executables: []
54
54
  extensions: []
55
55
  extra_rdoc_files: []
56
56
  files:
57
+ - ".github/workflows/test.yml"
57
58
  - ".gitignore"
58
- - ".travis.yml"
59
59
  - Gemfile
60
60
  - History.txt
61
61
  - Manifest.txt
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- sudo: false
2
- cache: bundler
3
- language: ruby
4
- before_install:
5
- - gem install bundler
6
- before_script:
7
- - 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc' # skip installing docs for gems
8
- script: 'bundle exec rake test'
9
- rvm:
10
- - 1.9.3
11
- - 2.0.0
12
- - 2.1.0
13
- - 2.2.0
14
- - 2.3.0