num4tststatistic2 0.1.2 → 0.2.2

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
  SHA256:
3
- metadata.gz: cfd90c54dab3784be95fad71d373a338e24c17a41b0bb5ddde46e46d77a4e739
4
- data.tar.gz: 6fa678137d1a9b7fa3336a8f61bdc3fe03d89cb67c6ece3ff5ddb27c5216cfb3
3
+ metadata.gz: 689f7c4dc9e59e7a032b3eabdead3355c540e4f077017579efcb450bf7b16625
4
+ data.tar.gz: 839a662c546a13d8e58bfd14de16879f963043c1cb53a13adbf167a0e361797d
5
5
  SHA512:
6
- metadata.gz: 20ec74c474a5d8524ab8c18eac95b33ac5c0bc96241a8aa8dea2aa3a2bb41d633c90aad4561611f25f421b68af754b5ebae32ac08a1ceb73b0ae672a1c9714ef
7
- data.tar.gz: 2520663599be76415a0fb3a6106d096f5697be92fdbf1371affff34ac4f9aa1b6da0f24e36c5ef7150e6cd2eec05d94207fd38be17a97552ab78326d3e583e6a
6
+ metadata.gz: 94c5439eaad916963aa4d26ec31f3f054b212d26ebaeae2207b09b7a6dd35055eaf2e3c48e0883b91ea9d6d6c0f506f16526bf98bf2f2c9cbac146b9a48cf081
7
+ data.tar.gz: f2fcbad7ca9704843d3286ffd8566a41ca37a59e2c5959f0fc69d17c328219bf3cd085da3c382c0674f1f11216ca4d12f97efefc78224d93f8c1cef58f5812ff
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## [0.2.1] - 2024-05-15
6
+ ### change
7
+ - change module name to Num4CorrTestLib from CorrTestLib.
8
+
5
9
  ## [0.1.2] - 2024-05-08
6
10
 
7
11
  ### chg
data/Gemfile CHANGED
@@ -1,8 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
+ gemspec
4
+
3
5
  platforms :jruby do
4
6
  gem "rake-compiler", ">= 1.2.5"
5
- gem "num4tststatistic", ">= 0.2.2"
6
- gem "num4hypothtst" , ">= 0.1.1"
7
7
  end
8
-
@@ -2,7 +2,7 @@ require 'num4tststatistic'
2
2
  require 'hypothTest3'
3
3
 
4
4
  # 相関検定
5
- module CorrTestLib
5
+ module Num4CorrTestLib
6
6
  # 無相関の検定
7
7
  class DecorrTestLib
8
8
  def initialize
@@ -69,7 +69,7 @@ module Num4TstStatistic2Lib
69
69
  statistic = @paraTest.populationRatio(m, n, p0)
70
70
  return @hypothTest3.normDistTest(statistic, a)
71
71
  end
72
- # 2つの母平均の差の検定
72
+ # 2つの母平均の差の検定(等分散性check有り)
73
73
  #
74
74
  # @overload diffPopulationVarMean(xi1, xi2, a)
75
75
  # @param [Array] xi1 x1のデータ(double[])
@@ -152,6 +152,7 @@ module Num4TstStatistic2Lib
152
152
  # => true
153
153
  def diffPopulationMean(xi1, xi2, a)
154
154
  raise TypeError unless @hypothTest3.kind_of?(HypothTest3IF)
155
+ raise RangeError unless xi1.size == xi2.size
155
156
 
156
157
  n = xi1.size
157
158
  df = n - 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: num4tststatistic2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - siranovel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-08 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: num4tststatistic
@@ -20,7 +20,7 @@ dependencies:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 0.2.2
23
- type: :development
23
+ type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
@@ -40,7 +40,7 @@ dependencies:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: 0.1.1
43
- type: :development
43
+ type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
@@ -59,7 +59,7 @@ files:
59
59
  - CHANGELOG.md
60
60
  - Gemfile
61
61
  - LICENSE
62
- - lib/corrtest.rb
62
+ - lib/num4corrtest.rb
63
63
  - lib/num4tststatistic2.rb
64
64
  homepage: https://github.com/siranovel/num4tststatistic2
65
65
  licenses: