rubystats 0.3.0 → 0.4.1
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 +4 -4
- data/.github/workflows/test.yml +21 -0
- data/History.txt +34 -0
- data/lib/rubystats/version.rb +1 -1
- data/rubystats.gemspec +4 -0
- metadata +17 -3
- data/.travis.yml +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 471983bd09135d655fad0e77b9fd7c66e81e2323
|
4
|
+
data.tar.gz: 1393b160401d61e1f3dd764d4b7a59e44447c503
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa6b0973d7780242b23d2990d3115cdf1abb8307c3f1914818a991a0d2de0db21ce4ab18781b7e121e5e5a525da99a9db198f3c40a8344137b8ae9c4338ac393
|
7
|
+
data.tar.gz: 69285904e2a731cc64cc0cd5f9787841c75eb98a4392df4590107a525435d3aa7213092a1592b7524a2bcb323b99fffdb97465fe23851bb4a27addd57879a7a7
|
@@ -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,37 @@
|
|
1
|
+
=== 0.3.1 / 2023-05-19
|
2
|
+
* Fix support for ruby 3.1
|
3
|
+
|
4
|
+
=== 0.3.0 / 2023-04-03
|
5
|
+
* Add support for ruby 3.1
|
6
|
+
|
7
|
+
=== 0.3.0 / 2017-12-01
|
8
|
+
* Uniform distribution
|
9
|
+
* added gamma distribution (mean, variance, pdf, cdf, rng)
|
10
|
+
* implemented multivariate normal distribution (mean,pdf,rng)
|
11
|
+
* cleaned up the code for the binomial distribution and created a module for discrete probability distributions
|
12
|
+
* implementation of poisson distribution (mean,variance,pdf,cdf,icdf,rng)
|
13
|
+
* fixed rng in Binomial and Poisson and added tests for their rng functions
|
14
|
+
* rewrote factorial function because of error with too many stack levels
|
15
|
+
* added student t distribution (mean, variance, pdf, rng)
|
16
|
+
* added weibull implementation (mean,pdf,cdf,icdf,rng)
|
17
|
+
* fix to prevent integer calculations when distributions are initialized (#10)
|
18
|
+
* Update beta_distribution.rb
|
19
|
+
* Added rng for beta distribution
|
20
|
+
* Corrected PDF calculation in README.rdoc
|
21
|
+
|
22
|
+
=== 0.2.6 / 2017-07-23
|
23
|
+
* Preserve the old API by setting constants manually
|
24
|
+
|
25
|
+
=== 0.2.5 / 2016-07-08
|
26
|
+
* refactoring to reduce warnings
|
27
|
+
* reactivate and fix test for normal distribution
|
28
|
+
* Use attr_reader to avoid initialization warnings.
|
29
|
+
* add test for normal distributed random numbers
|
30
|
+
|
31
|
+
=== 0.2.4 / 2016-01-31
|
32
|
+
* raise error when normal initialised with bad sigma
|
33
|
+
* changes for CI tests
|
34
|
+
|
1
35
|
=== 0.2.3 / 2008-07-06
|
2
36
|
* Fixing bug #21100 - problem with Beta distribution calculations when p and q values are small.
|
3
37
|
* Minor code cleanup for readability in a few places.
|
data/lib/rubystats/version.rb
CHANGED
data/rubystats.gemspec
CHANGED
@@ -20,5 +20,9 @@ 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
|
+
|
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")
|
23
27
|
end
|
24
28
|
|
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.
|
4
|
+
version: 0.4.1
|
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:
|
13
|
+
date: 2023-05-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -46,6 +46,20 @@ dependencies:
|
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 1.7.0
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: matrix
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
type: :runtime
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
49
63
|
description: Ruby Stats is a port of the statistics libraries from PHPMath. Probability
|
50
64
|
distributions include binomial, beta, and normal distributions with PDF, CDF and
|
51
65
|
inverse CDF as well as Fisher's Exact Test.
|
@@ -54,8 +68,8 @@ executables: []
|
|
54
68
|
extensions: []
|
55
69
|
extra_rdoc_files: []
|
56
70
|
files:
|
71
|
+
- ".github/workflows/test.yml"
|
57
72
|
- ".gitignore"
|
58
|
-
- ".travis.yml"
|
59
73
|
- Gemfile
|
60
74
|
- History.txt
|
61
75
|
- 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
|