ruby-statistics 3.0.2 → 4.0.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +29 -13
  3. data/README.md +16 -11
  4. data/lib/math.rb +4 -1
  5. data/lib/{statistics → ruby-statistics}/distribution/bernoulli.rb +1 -1
  6. data/lib/{statistics → ruby-statistics}/distribution/beta.rb +1 -1
  7. data/lib/{statistics → ruby-statistics}/distribution/binomial.rb +1 -1
  8. data/lib/{statistics → ruby-statistics}/distribution/chi_squared.rb +8 -3
  9. data/lib/{statistics → ruby-statistics}/distribution/empirical.rb +1 -1
  10. data/lib/{statistics → ruby-statistics}/distribution/f.rb +1 -1
  11. data/lib/{statistics → ruby-statistics}/distribution/geometric.rb +1 -1
  12. data/lib/{statistics → ruby-statistics}/distribution/logseries.rb +1 -1
  13. data/lib/{statistics → ruby-statistics}/distribution/negative_binomial.rb +1 -1
  14. data/lib/{statistics → ruby-statistics}/distribution/normal.rb +1 -1
  15. data/lib/{statistics → ruby-statistics}/distribution/poisson.rb +1 -1
  16. data/lib/{statistics → ruby-statistics}/distribution/t_student.rb +1 -1
  17. data/lib/{statistics → ruby-statistics}/distribution/uniform.rb +1 -1
  18. data/lib/{statistics → ruby-statistics}/distribution/weibull.rb +1 -1
  19. data/lib/{statistics → ruby-statistics}/distribution.rb +1 -1
  20. data/lib/{statistics → ruby-statistics}/spearman_rank_coefficient.rb +1 -1
  21. data/lib/{statistics → ruby-statistics}/statistical_test/chi_squared_test.rb +1 -1
  22. data/lib/{statistics → ruby-statistics}/statistical_test/f_test.rb +1 -1
  23. data/lib/{statistics → ruby-statistics}/statistical_test/kolmogorov_smirnov_test.rb +1 -1
  24. data/lib/{statistics → ruby-statistics}/statistical_test/t_test.rb +1 -1
  25. data/lib/{statistics → ruby-statistics}/statistical_test/wilcoxon_rank_sum_test.rb +1 -1
  26. data/lib/{statistics → ruby-statistics}/statistical_test.rb +3 -3
  27. data/lib/ruby-statistics/version.rb +3 -0
  28. data/lib/statistics.rb +2 -2
  29. data/ruby-statistics.gemspec +10 -8
  30. metadata +53 -55
  31. data/lib/statistics/version.rb +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5708aa695b3da8169acd11eade4bd66fb882176031dcb246217c25a8f07bfa66
4
- data.tar.gz: 85e85043d9ff86f5b87fd9bd5fb0d447682919f4a2ad9bd6925c88efc62885f6
3
+ metadata.gz: 27e203f810d4efc877c5684b20397691a6c15ff0822bffd066806913514eca5b
4
+ data.tar.gz: 3585ea21ec02b2be95654010e0907ffa20ffa5ab59f5d8f3fa595f05e24378f3
5
5
  SHA512:
6
- metadata.gz: c950d0983e6184e6372b0f4e1ba3306826b7260900062c44a3dad08cdbfbd7b2835b8df0f5974e1a89ae360efcda633e34c667d2b32aee743a5163d665075789
7
- data.tar.gz: b04fe969caca5709430c7e5a213cbc5396359c49c42829d4f678266d7f207ce051d552a3820ff511198128c8f4ac3b5c7c2f4037664c225fdeed6830e3650d2a
6
+ metadata.gz: 2169076eca6216bbd847309b8c19eee02811cf4ec1e2f7684b998a874058449444b3410101f179ad31f169a6337350d871a1fbb47832a92017cbf256fdde00c4
7
+ data.tar.gz: b004115fe3d165e1a82304c4194176edfa6827693f5a428818068eaee04f7c2b60e638cbdfd5a3a3cf664b2a6eba4432282ce48b2e00a2900c2d376348bff56e
@@ -1,6 +1,6 @@
1
1
  name: Ruby
2
2
 
3
- on: [push]
3
+ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  build: # Latest ruby
@@ -8,27 +8,27 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
 
10
10
  steps:
11
- - uses: actions/checkout@v3
12
- - name: Set up Ruby 3.1
13
- uses: ruby/setup-ruby@v1.146.0
11
+ - uses: actions/checkout@v4
12
+ - name: Set up Ruby 3.3
13
+ uses: ruby/setup-ruby@v1.183.0
14
14
  with:
15
- ruby-version: 3.1.2
15
+ ruby-version: 3.3
16
16
  - name: Build and test with Rake
17
17
  run: |
18
18
  gem install bundler
19
19
  bundle install --jobs 2 --retry 1
20
20
  bundle exec rake
21
21
 
22
- build_2_7:
22
+ build_3_2:
23
23
 
24
24
  runs-on: ubuntu-latest
25
25
 
26
26
  steps:
27
- - uses: actions/checkout@v3
28
- - name: Set up Ruby 2.7
29
- uses: ruby/setup-ruby@v1.146.0
27
+ - uses: actions/checkout@v4
28
+ - name: Set up Ruby 3.2
29
+ uses: ruby/setup-ruby@v1.183.0
30
30
  with:
31
- ruby-version: 2.7.6
31
+ ruby-version: 3.2
32
32
  - name: Build and test with Rake
33
33
  run: |
34
34
  gem install bundler
@@ -40,11 +40,27 @@ jobs:
40
40
  runs-on: ubuntu-latest
41
41
 
42
42
  steps:
43
- - uses: actions/checkout@v3
43
+ - uses: actions/checkout@v4
44
44
  - name: Set up Ruby 3.0
45
- uses: ruby/setup-ruby@v1.146.0
45
+ uses: ruby/setup-ruby@v1.183.0
46
+ with:
47
+ ruby-version: 3.0
48
+ - name: Build and test with Rake
49
+ run: |
50
+ gem install bundler
51
+ bundle install --jobs 2 --retry 1
52
+ bundle exec rake
53
+
54
+ build_3_1:
55
+
56
+ runs-on: ubuntu-latest
57
+
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+ - name: Set up Ruby 3.1
61
+ uses: ruby/setup-ruby@v1.183.0
46
62
  with:
47
- ruby-version: 3.0.4
63
+ ruby-version: 3.1
48
64
  - name: Build and test with Rake
49
65
  run: |
50
66
  gem install bundler
data/README.md CHANGED
@@ -1,13 +1,18 @@
1
1
  # Ruby Statistics
2
+ ![](https://github.com/estebanz01/ruby-statistics/actions/workflows/ruby.yml/badge.svg)
2
3
 
3
- ![](https://travis-ci.org/estebanz01/ruby-statistics.svg?branch=master)
4
+ ## Note regarding Versions 3.x and 4.x
5
+ Hola! :wave: right now the gem got an update that introduced a breaking change in master where the Outermost namespace was changed to be `ruby_statistics` instead of `statistics`. This change is in _master_ already but not yet released. If you're relying on branch instead of gem version, you can checkout branch `3.x`. This branch will be supported but no additional features will be added.
6
+
7
+ ---
4
8
 
5
9
  A basic ruby gem that implements some statistical methods, functions and concepts to be used in any ruby environment without depending on any mathematical software like `R`, `Matlab`, `Octave` or similar.
6
10
 
7
11
  Unit test runs under the following ruby versions:
8
- * Ruby 2.7.6.
9
- * Ruby 3.0.4.
10
- * Ruby 3.1.2.
12
+ * Ruby 3.0.
13
+ * Ruby 3.1.
14
+ * Ruby 3.2.
15
+ * Ruby 3.3.
11
16
 
12
17
  We got the inspiration from the folks at [JStat](https://github.com/jstat/jstat) and some interesting lectures about [Keystroke dynamics](http://www.biometric-solutions.com/keystroke-dynamics.html).
13
18
 
@@ -32,22 +37,22 @@ Or install it yourself as:
32
37
 
33
38
  ## Basic Usage
34
39
 
35
- just require the `statistics` gem in order to load it. If you don't have defined the `Distribution` namespace, the gem will assign an alias, reducing the number of namespaces needed to use a class.
40
+ just require the `ruby-statistics` gem in order to load it. If you don't have defined the `Distribution` namespace, the gem will assign an alias, reducing the number of namespaces needed to use a class.
36
41
 
37
42
  Right now you can load:
38
43
 
39
- * The whole statistics gem. `require 'statistics'`
40
- * A namespace. `require 'statistics/distribution'`
41
- * A class. `require 'statistics/distribution/normal'`
44
+ * The whole statistics gem. `require 'ruby-statistics'`
45
+ * A namespace. `require 'ruby-statistics/distribution'`
46
+ * A class. `require 'ruby-statistics/distribution/normal'`
42
47
 
43
48
  Feel free to use the one that is more convenient to you.
44
49
 
45
50
  ### Hello-World Example
46
51
  ```ruby
47
- require 'statistics'
52
+ require 'ruby-statistics'
48
53
 
49
54
  poisson = Distribution::Poisson.new(l) # Using Distribution alias.
50
- normal = Statistics::Distribution::StandardNormal.new # Using all namespaces.
55
+ normal = RubyStatistics::Distribution::StandardNormal.new # Using all namespaces.
51
56
  ```
52
57
 
53
58
  ## Documentation
@@ -69,7 +74,7 @@ The gem is available as open source under the terms of the [MIT License](http://
69
74
 
70
75
  ## Code of Conduct
71
76
 
72
- Everyone interacting in the Statistics project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/estebanz01/ruby-statistics/blob/master/CODE_OF_CONDUCT.md).
77
+ Everyone interacting in the RubyStatistics project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/estebanz01/ruby-statistics/blob/master/CODE_OF_CONDUCT.md).
73
78
 
74
79
  ## Contact
75
80
 
data/lib/math.rb CHANGED
@@ -45,8 +45,11 @@ module Math
45
45
  end
46
46
 
47
47
  def self.lower_incomplete_gamma_function(s, x)
48
+ base_iterator = x.round(1)
49
+ base_iterator += 1 if x < 1.0 && !x.zero?
50
+
48
51
  # The greater the iterations, the better. That's why we are iterating 10_000 * x times
49
- iterator = (10_000 * x.round(1)).round
52
+ iterator = (10_000 * base_iterator).round
50
53
  iterator = 100_000 if iterator.zero?
51
54
 
52
55
  self.simpson_rule(0, x.to_r, iterator) do |t|
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class Bernoulli
4
4
  def self.density_function(n, p)
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class Beta
4
4
  attr_accessor :alpha, :beta
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class Binomial
4
4
  attr_accessor :number_of_trials, :probability_per_trial
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class ChiSquared
4
4
  attr_accessor :degrees_of_freedom
@@ -10,8 +10,13 @@ module Statistics
10
10
  end
11
11
 
12
12
  def cumulative_function(value)
13
- k = degrees_of_freedom/2.0
14
- Math.lower_incomplete_gamma_function(k, value/2.0)/Math.gamma(k)
13
+ if degrees_of_freedom == 2
14
+ # Special case where DF = 2 https://en.wikipedia.org/wiki/Chi-squared_distribution#Cumulative_distribution_function
15
+ 1.0 - Math.exp((-1.0 * value / 2.0))
16
+ else
17
+ k = degrees_of_freedom/2.0
18
+ Math.lower_incomplete_gamma_function(k, value/2.0)/Math.gamma(k)
19
+ end
15
20
  end
16
21
 
17
22
  def density_function(value)
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class Empirical
4
4
  attr_accessor :samples
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class F
4
4
  attr_accessor :d1, :d2 # Degrees of freedom #1 and #2
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class Geometric
4
4
  attr_accessor :probability_of_success, :always_success_allowed
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class LogSeries
4
4
  def self.density_function(k, p)
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class NegativeBinomial
4
4
  attr_accessor :number_of_failures, :probability_per_trial
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class Normal
4
4
  attr_accessor :mean, :standard_deviation, :variance
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class Poisson
4
4
  attr_accessor :expected_number_of_occurrences
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class TStudent
4
4
  attr_accessor :degrees_of_freedom
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class Uniform
4
4
  attr_accessor :left, :right
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module Distribution
3
3
  class Weibull
4
4
  attr_accessor :shape, :scale # k and lambda
@@ -1,6 +1,6 @@
1
1
  Dir[File.dirname(__FILE__) + '/distribution/**/*.rb'].each {|file| require file }
2
2
 
3
- module Statistics
3
+ module RubyStatistics
4
4
  module Distribution
5
5
  end
6
6
  end
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  class SpearmanRankCoefficient
3
3
  def self.rank(data:, return_ranks_only: true)
4
4
  descending_order_data = data.sort { |a, b| b <=> a }
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module StatisticalTest
3
3
  class ChiSquaredTest
4
4
  def self.chi_statistic(expected, observed)
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module StatisticalTest
3
3
  class FTest
4
4
  # This method calculates the one-way ANOVA F-test statistic.
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module StatisticalTest
3
3
  class KolmogorovSmirnovTest
4
4
  # Common alpha, and critical D are calculated following formulas from: https://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Smirnov_test#Two-sample_Kolmogorov%E2%80%93Smirnov_test
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module StatisticalTest
3
3
  class TTest
4
4
  # Errors for Zero std
@@ -1,4 +1,4 @@
1
- module Statistics
1
+ module RubyStatistics
2
2
  module StatisticalTest
3
3
  class WilcoxonRankSumTest
4
4
  def rank(elements)
@@ -1,11 +1,11 @@
1
1
  Dir[File.dirname(__FILE__) + '/statistical_test/**/*.rb'].each {|file| require file }
2
2
 
3
- module Statistics
3
+ module RubyStatistics
4
4
  module StatisticalTest
5
5
  end
6
6
  end
7
7
 
8
8
  # If StatisticalTest is not defined, setup alias.
9
- if defined?(Statistics) && !(defined?(StatisticalTest))
10
- StatisticalTest = Statistics::StatisticalTest
9
+ if defined?(RubyStatistics) && !(defined?(StatisticalTest))
10
+ StatisticalTest = RubyStatistics::StatisticalTest
11
11
  end
@@ -0,0 +1,3 @@
1
+ module RubyStatistics
2
+ VERSION = "4.0.0"
3
+ end
data/lib/statistics.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/enumerable'
2
2
  require File.dirname(__FILE__) + '/math'
3
- Dir[ File.dirname(__FILE__) + '/statistics/**/*.rb'].each {|file| require file }
3
+ Dir[ File.dirname(__FILE__) + '/ruby-statistics/**/*.rb'].each {|file| require file }
4
4
 
5
- module Statistics
5
+ module RubyStatistics
6
6
  # Your code goes here...
7
7
  end
@@ -1,13 +1,13 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "statistics/version"
4
+ require "ruby-statistics/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "ruby-statistics"
8
- spec.version = Statistics::VERSION
8
+ spec.version = RubyStatistics::VERSION
9
9
  spec.authors = ["esteban zapata"]
10
- spec.email = ["estebanz01@outlook.com"]
10
+ spec.email = ["ruby@estebanz.email"]
11
11
 
12
12
  spec.summary = %q{A ruby gem for som specific statistics. Inspired by the jStat js library.}
13
13
  spec.description = %q{This gem is intended to accomplish the same purpose as jStat js library:
@@ -27,9 +27,11 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_development_dependency "rake", '>= 12.0.0', '~> 13.0'
31
- spec.add_development_dependency "rspec", '>= 3.6.0'
32
- spec.add_development_dependency "grb", '~> 0.4.1', '>= 0.4.1'
33
- spec.add_development_dependency 'byebug', '>= 9.1.0'
34
- spec.add_development_dependency 'pry'
30
+ # Minimum required ruby version
31
+ spec.required_ruby_version = '>= 3.0'
32
+
33
+ spec.add_development_dependency "rake", '~> 13.0', '>= 12.0.0'
34
+ spec.add_development_dependency "rspec", '~> 3.6', '>= 3.6.0'
35
+ spec.add_development_dependency 'byebug', '~> 11.1', '>= 11.1.0'
36
+ spec.add_development_dependency 'pry', '~> 0.14', '>= 0.14.0'
35
37
  end
metadata CHANGED
@@ -1,97 +1,95 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - esteban zapata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-17 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 12.0.0
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '13.0'
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
20
  - - ">="
28
21
  - !ruby/object:Gem::Version
29
22
  version: 12.0.0
30
- - - "~>"
31
- - !ruby/object:Gem::Version
32
- version: '13.0'
33
- - !ruby/object:Gem::Dependency
34
- name: rspec
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 3.6.0
40
23
  type: :development
41
24
  prerelease: false
42
25
  version_requirements: !ruby/object:Gem::Requirement
43
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '13.0'
44
30
  - - ">="
45
31
  - !ruby/object:Gem::Version
46
- version: 3.6.0
32
+ version: 12.0.0
47
33
  - !ruby/object:Gem::Dependency
48
- name: grb
34
+ name: rspec
49
35
  requirement: !ruby/object:Gem::Requirement
50
36
  requirements:
51
37
  - - "~>"
52
38
  - !ruby/object:Gem::Version
53
- version: 0.4.1
39
+ version: '3.6'
54
40
  - - ">="
55
41
  - !ruby/object:Gem::Version
56
- version: 0.4.1
42
+ version: 3.6.0
57
43
  type: :development
58
44
  prerelease: false
59
45
  version_requirements: !ruby/object:Gem::Requirement
60
46
  requirements:
61
47
  - - "~>"
62
48
  - !ruby/object:Gem::Version
63
- version: 0.4.1
49
+ version: '3.6'
64
50
  - - ">="
65
51
  - !ruby/object:Gem::Version
66
- version: 0.4.1
52
+ version: 3.6.0
67
53
  - !ruby/object:Gem::Dependency
68
54
  name: byebug
69
55
  requirement: !ruby/object:Gem::Requirement
70
56
  requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '11.1'
71
60
  - - ">="
72
61
  - !ruby/object:Gem::Version
73
- version: 9.1.0
62
+ version: 11.1.0
74
63
  type: :development
75
64
  prerelease: false
76
65
  version_requirements: !ruby/object:Gem::Requirement
77
66
  requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '11.1'
78
70
  - - ">="
79
71
  - !ruby/object:Gem::Version
80
- version: 9.1.0
72
+ version: 11.1.0
81
73
  - !ruby/object:Gem::Dependency
82
74
  name: pry
83
75
  requirement: !ruby/object:Gem::Requirement
84
76
  requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '0.14'
85
80
  - - ">="
86
81
  - !ruby/object:Gem::Version
87
- version: '0'
82
+ version: 0.14.0
88
83
  type: :development
89
84
  prerelease: false
90
85
  version_requirements: !ruby/object:Gem::Requirement
91
86
  requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.14'
92
90
  - - ">="
93
91
  - !ruby/object:Gem::Version
94
- version: '0'
92
+ version: 0.14.0
95
93
  description: |-
96
94
  This gem is intended to accomplish the same purpose as jStat js library:
97
95
  to provide ruby with statistical capabilities without the need
@@ -99,7 +97,7 @@ description: |-
99
97
  and capabilities are an implementation from other authors and are
100
98
  referenced properly in the class/method.
101
99
  email:
102
- - estebanz01@outlook.com
100
+ - ruby@estebanz.email
103
101
  executables: []
104
102
  extensions: []
105
103
  extra_rdoc_files: []
@@ -120,30 +118,30 @@ files:
120
118
  - bin/setup
121
119
  - lib/enumerable.rb
122
120
  - lib/math.rb
121
+ - lib/ruby-statistics/distribution.rb
122
+ - lib/ruby-statistics/distribution/bernoulli.rb
123
+ - lib/ruby-statistics/distribution/beta.rb
124
+ - lib/ruby-statistics/distribution/binomial.rb
125
+ - lib/ruby-statistics/distribution/chi_squared.rb
126
+ - lib/ruby-statistics/distribution/empirical.rb
127
+ - lib/ruby-statistics/distribution/f.rb
128
+ - lib/ruby-statistics/distribution/geometric.rb
129
+ - lib/ruby-statistics/distribution/logseries.rb
130
+ - lib/ruby-statistics/distribution/negative_binomial.rb
131
+ - lib/ruby-statistics/distribution/normal.rb
132
+ - lib/ruby-statistics/distribution/poisson.rb
133
+ - lib/ruby-statistics/distribution/t_student.rb
134
+ - lib/ruby-statistics/distribution/uniform.rb
135
+ - lib/ruby-statistics/distribution/weibull.rb
136
+ - lib/ruby-statistics/spearman_rank_coefficient.rb
137
+ - lib/ruby-statistics/statistical_test.rb
138
+ - lib/ruby-statistics/statistical_test/chi_squared_test.rb
139
+ - lib/ruby-statistics/statistical_test/f_test.rb
140
+ - lib/ruby-statistics/statistical_test/kolmogorov_smirnov_test.rb
141
+ - lib/ruby-statistics/statistical_test/t_test.rb
142
+ - lib/ruby-statistics/statistical_test/wilcoxon_rank_sum_test.rb
143
+ - lib/ruby-statistics/version.rb
123
144
  - lib/statistics.rb
124
- - lib/statistics/distribution.rb
125
- - lib/statistics/distribution/bernoulli.rb
126
- - lib/statistics/distribution/beta.rb
127
- - lib/statistics/distribution/binomial.rb
128
- - lib/statistics/distribution/chi_squared.rb
129
- - lib/statistics/distribution/empirical.rb
130
- - lib/statistics/distribution/f.rb
131
- - lib/statistics/distribution/geometric.rb
132
- - lib/statistics/distribution/logseries.rb
133
- - lib/statistics/distribution/negative_binomial.rb
134
- - lib/statistics/distribution/normal.rb
135
- - lib/statistics/distribution/poisson.rb
136
- - lib/statistics/distribution/t_student.rb
137
- - lib/statistics/distribution/uniform.rb
138
- - lib/statistics/distribution/weibull.rb
139
- - lib/statistics/spearman_rank_coefficient.rb
140
- - lib/statistics/statistical_test.rb
141
- - lib/statistics/statistical_test/chi_squared_test.rb
142
- - lib/statistics/statistical_test/f_test.rb
143
- - lib/statistics/statistical_test/kolmogorov_smirnov_test.rb
144
- - lib/statistics/statistical_test/t_test.rb
145
- - lib/statistics/statistical_test/wilcoxon_rank_sum_test.rb
146
- - lib/statistics/version.rb
147
145
  - ruby-statistics.gemspec
148
146
  homepage: https://github.com/estebanz01/ruby-statistics
149
147
  licenses:
@@ -157,14 +155,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
155
  requirements:
158
156
  - - ">="
159
157
  - !ruby/object:Gem::Version
160
- version: '0'
158
+ version: '3.0'
161
159
  required_rubygems_version: !ruby/object:Gem::Requirement
162
160
  requirements:
163
161
  - - ">="
164
162
  - !ruby/object:Gem::Version
165
163
  version: '0'
166
164
  requirements: []
167
- rubygems_version: 3.3.7
165
+ rubygems_version: 3.5.11
168
166
  signing_key:
169
167
  specification_version: 4
170
168
  summary: A ruby gem for som specific statistics. Inspired by the jStat js library.
@@ -1,3 +0,0 @@
1
- module Statistics
2
- VERSION = "3.0.2"
3
- end