statistics3 0.0.1 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.semver +1 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +22 -19
- data/README.org +115 -3
- data/statistics3.gemspec +10 -13
- metadata +8 -11
- data/ext/Makefile +0 -260
- data/ext/_statistics3.o +0 -0
- data/ext/_statistics3.so +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e74fdb6b85ceee42724799329cbb066cfee4485
|
4
|
+
data.tar.gz: e27d217fb7bb1ff4725710641ec384a05f5649c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e179e0a06aa797bb7cb4e7cf32f779e48f92e4fb1b883adcae7a2d5864cdd9bd6fdfb6bf9550e6688bfabef64e6407909aaab39f8937dda88fd4492b3e4aad8f
|
7
|
+
data.tar.gz: c25424b0d4ed047eeda098de3cd4429440642253cee16b97b6f3b210425930e35b5762195eb3738a4e9eaadf12e081c5a973ab39c3da2665f0107312c0ee40af
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.1
|
data/.semver
CHANGED
data/Gemfile
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
gem "
|
3
|
+
gem "semver2", "~> 3"
|
4
4
|
gem "awesome_print", "~> 1"
|
5
5
|
gem "colorize", "~> 0"
|
6
6
|
gem "psych", "~> 2"
|
7
7
|
|
8
8
|
group :development do
|
9
|
-
gem "rspec", "~> 3
|
9
|
+
gem "rspec", "~> 3"
|
10
10
|
gem "test-unit"
|
11
11
|
gem "yard", "~> 0.7"
|
12
12
|
gem "rdoc", "~> 3.12"
|
data/Gemfile.lock
CHANGED
@@ -5,28 +5,29 @@ GEM
|
|
5
5
|
awesome_print (1.7.0)
|
6
6
|
binding_of_caller (0.7.2)
|
7
7
|
debug_inspector (>= 0.0.1)
|
8
|
-
builder (3.2.
|
8
|
+
builder (3.2.3)
|
9
9
|
byebug (9.0.6)
|
10
10
|
coderay (1.1.1)
|
11
11
|
colorize (0.8.1)
|
12
12
|
debug_inspector (0.0.2)
|
13
13
|
descendants_tracker (0.0.4)
|
14
14
|
thread_safe (~> 0.3, >= 0.3.1)
|
15
|
-
diff-lcs (1.
|
15
|
+
diff-lcs (1.3)
|
16
16
|
docile (1.1.5)
|
17
17
|
faraday (0.9.2)
|
18
18
|
multipart-post (>= 1.2, < 3)
|
19
19
|
git (1.3.0)
|
20
|
-
github_api (0.
|
20
|
+
github_api (0.17.0)
|
21
21
|
addressable (~> 2.4.0)
|
22
22
|
descendants_tracker (~> 0.0.4)
|
23
23
|
faraday (~> 0.8, < 0.10)
|
24
24
|
hashie (>= 3.4)
|
25
|
+
mime-types (>= 1.16, < 3.0)
|
25
26
|
oauth2 (~> 1.0)
|
26
|
-
hashie (3.
|
27
|
+
hashie (3.5.5)
|
27
28
|
highline (1.7.8)
|
28
29
|
interception (0.5)
|
29
|
-
json (1.8.
|
30
|
+
json (1.8.6)
|
30
31
|
juwelier (2.1.3)
|
31
32
|
builder
|
32
33
|
bundler (>= 1.13)
|
@@ -39,19 +40,20 @@ GEM
|
|
39
40
|
semver
|
40
41
|
jwt (1.5.6)
|
41
42
|
method_source (0.8.2)
|
43
|
+
mime-types (2.99.3)
|
42
44
|
mini_portile2 (2.1.0)
|
43
45
|
multi_json (1.12.1)
|
44
46
|
multi_xml (0.6.0)
|
45
47
|
multipart-post (2.0.0)
|
46
|
-
nokogiri (1.
|
48
|
+
nokogiri (1.7.1)
|
47
49
|
mini_portile2 (~> 2.1.0)
|
48
|
-
oauth2 (1.
|
49
|
-
faraday (>= 0.8, < 0.
|
50
|
+
oauth2 (1.3.1)
|
51
|
+
faraday (>= 0.8, < 0.12)
|
50
52
|
jwt (~> 1.0)
|
51
53
|
multi_json (~> 1.3)
|
52
54
|
multi_xml (~> 0.5)
|
53
55
|
rack (>= 1.2, < 3)
|
54
|
-
power_assert (0.
|
56
|
+
power_assert (1.0.1)
|
55
57
|
pry (0.10.4)
|
56
58
|
coderay (~> 1.1.0)
|
57
59
|
method_source (~> 0.8.1)
|
@@ -59,19 +61,19 @@ GEM
|
|
59
61
|
pry-byebug (3.4.2)
|
60
62
|
byebug (~> 9.0)
|
61
63
|
pry (~> 0.10)
|
62
|
-
pry-doc (0.
|
64
|
+
pry-doc (0.10.0)
|
63
65
|
pry (~> 0.9)
|
64
|
-
yard (~> 0.
|
66
|
+
yard (~> 0.9)
|
65
67
|
pry-remote (0.1.8)
|
66
68
|
pry (~> 0.9)
|
67
69
|
slop (~> 3.0)
|
68
|
-
pry-rescue (1.4.
|
70
|
+
pry-rescue (1.4.5)
|
69
71
|
interception (>= 0.5)
|
70
72
|
pry
|
71
73
|
pry-stack_explorer (0.4.9.2)
|
72
74
|
binding_of_caller (>= 0.7)
|
73
75
|
pry (>= 0.9.11)
|
74
|
-
psych (2.2.
|
76
|
+
psych (2.2.4)
|
75
77
|
rack (2.0.1)
|
76
78
|
rake (12.0.0)
|
77
79
|
rdoc (3.12.2)
|
@@ -90,7 +92,8 @@ GEM
|
|
90
92
|
rspec-support (~> 3.5.0)
|
91
93
|
rspec-support (3.5.0)
|
92
94
|
semver (1.0.1)
|
93
|
-
|
95
|
+
semver2 (3.4.2)
|
96
|
+
simplecov (0.14.1)
|
94
97
|
docile (~> 1.1.0)
|
95
98
|
json (>= 1.8, < 3)
|
96
99
|
simplecov-html (~> 0.10.0)
|
@@ -98,8 +101,8 @@ GEM
|
|
98
101
|
slop (3.6.0)
|
99
102
|
test-unit (3.2.3)
|
100
103
|
power_assert
|
101
|
-
thread_safe (0.3.
|
102
|
-
yard (0.9.
|
104
|
+
thread_safe (0.3.6)
|
105
|
+
yard (0.9.9)
|
103
106
|
|
104
107
|
PLATFORMS
|
105
108
|
ruby
|
@@ -117,11 +120,11 @@ DEPENDENCIES
|
|
117
120
|
pry-stack_explorer (~> 0)
|
118
121
|
psych (~> 2)
|
119
122
|
rdoc (~> 3.12)
|
120
|
-
rspec (~> 3
|
121
|
-
|
123
|
+
rspec (~> 3)
|
124
|
+
semver2 (~> 3)
|
122
125
|
simplecov
|
123
126
|
test-unit
|
124
127
|
yard (~> 0.7)
|
125
128
|
|
126
129
|
BUNDLED WITH
|
127
|
-
1.
|
130
|
+
1.14.6
|
data/README.org
CHANGED
@@ -3,8 +3,7 @@
|
|
3
3
|
it is in serious need of modernization for the latest Ruby, and I am
|
4
4
|
currently depending on this library for my RubyNEAT work.
|
5
5
|
|
6
|
-
For more information (
|
7
|
-
. http://www.matsusaka-u.ac.jp/~okumura/algo/
|
6
|
+
For more information (in Japanese and so use Google Translate)
|
8
7
|
. http://www5.airnet.ne.jp/tomy/cpro/sslib11.htm
|
9
8
|
|
10
9
|
** REQUIREMENTS
|
@@ -13,12 +12,125 @@
|
|
13
12
|
** Installation
|
14
13
|
#+begin_src bash
|
15
14
|
gem install statistics3
|
16
|
-
#+
|
15
|
+
#+end_src
|
17
16
|
|
18
17
|
** Documentation
|
19
18
|
Note that I've just modernized this fork, and will attempt
|
20
19
|
to add more documentation as time permits.
|
21
20
|
|
21
|
+
*** List of all available functions
|
22
|
+
- binX_(n, p, x)
|
23
|
+
- bin_x(n, p, x)
|
24
|
+
- bindens(n, p, x)
|
25
|
+
- bindist(n, p, x)
|
26
|
+
- chi2X_(n, x)
|
27
|
+
- chi2_x(n, x)
|
28
|
+
- chi2dens(n, x)
|
29
|
+
- chi2dist(n, x)
|
30
|
+
- combi(n, x)
|
31
|
+
- fX_(n1, n2, x)
|
32
|
+
- f_x(n1, n2, x)
|
33
|
+
- fdist(n1, n2, f)
|
34
|
+
- gamma(x)
|
35
|
+
- loggamma(x)
|
36
|
+
- newton_a(y, ini, epsilon = 1.0e-6, limit = 30)
|
37
|
+
- normal__X_(z)
|
38
|
+
- normal___x(z)
|
39
|
+
- normaldist(z)
|
40
|
+
- normalxXX_(z)
|
41
|
+
- normalx__x(z)
|
42
|
+
- p_nor(z)
|
43
|
+
- p_t(df, t)
|
44
|
+
- pchi2(n, y)
|
45
|
+
- pchi2X_(n, y)
|
46
|
+
- pchi2_x(n, y)
|
47
|
+
- pchi2dist(n, y)
|
48
|
+
- perm(n, x = n)
|
49
|
+
- pf(q, n1, n2)
|
50
|
+
- pfX_(n1, n2, x)
|
51
|
+
- pf_x(n1, n2, x)
|
52
|
+
- pfdist(n1, n2, y)
|
53
|
+
- pfsub(x, y, z)
|
54
|
+
- pnorm(qn)
|
55
|
+
- pnormal__X_(y)
|
56
|
+
- pnormal___x(y)
|
57
|
+
- pnormaldist(y)
|
58
|
+
- pnormalxXX_(z)
|
59
|
+
- pnormalx__x(y)
|
60
|
+
- poissonX_(m, x)
|
61
|
+
- poisson_x(m, x)
|
62
|
+
- poissondens(m, x)
|
63
|
+
- poissondist(m, x)
|
64
|
+
- pt(q, n)
|
65
|
+
- pt__X_(n, y)
|
66
|
+
- pt___x(n, y)
|
67
|
+
- ptdist(n, y)
|
68
|
+
- ptsub(q, n)
|
69
|
+
- ptxXX_(n, y)
|
70
|
+
- ptx__x(n, y)
|
71
|
+
- q_chi2(df, chi2)
|
72
|
+
- q_f(df1, df2, f)
|
73
|
+
- t__X_(n, x)
|
74
|
+
- t___x(n, x)
|
75
|
+
- tdist(n, t)
|
76
|
+
- txXX_(n, x)
|
77
|
+
- tx__x(n, x)
|
78
|
+
|
79
|
+
*** Distribution
|
80
|
+
**** Normal Distribution
|
81
|
+
| Integral of normal distribution over (-Infty, x]. | normalxXX_(z) |
|
82
|
+
| Integral of normal distribution over [0, x]. | normal__X_(z) |
|
83
|
+
| Integral of normal distribution over [x, Infty). | normal___x(z) |
|
84
|
+
| Integral of normal distribution over (-Infty, -x] + [x, Infty). | normalx__x(z) |
|
85
|
+
|
86
|
+
**** Inverse of normal-distribution
|
87
|
+
|
88
|
+
| P-value of the corresponding integral. | pnormalxXX_(z) |
|
89
|
+
| P-value of the corresponding integral. | pnormal__X_(y) |
|
90
|
+
| P-value of the corresponding integral. | pnormal___x(y) |
|
91
|
+
| P-value of the corresponding integral. | pnormalx__x(y) |
|
92
|
+
|
93
|
+
**** Chi2-distribution
|
94
|
+
|
95
|
+
| Integral of Chi-squared distribution with n degrees of freedom over [x, Infty). | chi2_x(n, x) |
|
96
|
+
| Integral of Chi-squared distribution with n degrees of freedom over [0, x]. | chi2X_(n, x) |
|
97
|
+
|
98
|
+
**** Inverse of chi2-distribution
|
99
|
+
|
100
|
+
| P-value of the corresponding integral. | pchi2_x(n, y) |
|
101
|
+
| P-value of the corresponding integral. | pchi2X_(n, y) |
|
102
|
+
|
103
|
+
**** t-distribution
|
104
|
+
|
105
|
+
| Integral of normal distribution with n degrees of freedom over (-Infty, -x] + [x, Infty). | tx__x(n, x) |
|
106
|
+
| Integral of t-distribution with n degrees of freedom over (-Infty, x]. | txXX_(n, x) |
|
107
|
+
| Integral of t-distribution with n degrees of freedom over [0, x]. | t__X_(n, x) |
|
108
|
+
| Integral of t-distribution with n degrees of freedom over [x, Infty). | t___x(n, x) |
|
109
|
+
|
110
|
+
**** inverse of t-distribution
|
111
|
+
|
112
|
+
| P-value of the corresponding integral. | ptx__x(n, y) |
|
113
|
+
| P-value of the corresponding integral. | ptxXX_(n, y) |
|
114
|
+
| P-value of the corresponding integral. | pt__X_(n, y) |
|
115
|
+
| P-value of the corresponding integral. | pt___x(n, y) |
|
116
|
+
|
117
|
+
**** F-distribution
|
118
|
+
|
119
|
+
| Integral of F-distribution with n1 and n2 degrees of freedom over [x, Infty). | f_x(n1, n2, x) |
|
120
|
+
| Integral of F-distribution with n1 and n2 degrees of freedom over [0, x]. | fX_(n1, n2, x) |
|
121
|
+
|
122
|
+
**** Inverse of F-distribution
|
123
|
+
|
124
|
+
| P-value of the corresponding integral. | pf_x(n1, n2, x) |
|
125
|
+
| P-value of the corresponding integral. | pfX_(n1, n2, x) |
|
126
|
+
|
127
|
+
**** Discrete distributions
|
128
|
+
- binX_(n, p, x)
|
129
|
+
- bin_x(n, p, x)
|
130
|
+
|
131
|
+
- poissonX_(m, x)
|
132
|
+
- poisson_x(m, x)
|
133
|
+
|
22
134
|
** Usage
|
23
135
|
*** Example:
|
24
136
|
#+begin_src ruby
|
data/statistics3.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: statistics3 0.0.
|
5
|
+
# stub: statistics3 0.0.5 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "statistics3".freeze
|
10
|
-
s.version = "0.0.
|
10
|
+
s.version = "0.0.5"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib".freeze]
|
14
14
|
s.authors = ["Fred Mitchell".freeze]
|
15
|
-
s.date = "
|
15
|
+
s.date = "2017-04-24"
|
16
16
|
s.description = "\n Statistics3 is a module that provides normal,\n Chi-square, t- and F- probability distributions\n for Ruby. It is a fork/continuation of Shin-ichiro Hara's original code.\n It provides a native, compiled extension and a pure Ruby implementation.\n ".freeze
|
17
17
|
s.email = "fred.mitchell@gmx.de".freeze
|
18
18
|
s.extensions = ["ext/extconf.rb".freeze]
|
@@ -34,10 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
"Rakefile",
|
35
35
|
"examples/mklist.rb",
|
36
36
|
"examples/show.rb",
|
37
|
-
"ext/Makefile",
|
38
37
|
"ext/_statistics3.c",
|
39
|
-
"ext/_statistics3.o",
|
40
|
-
"ext/_statistics3.so",
|
41
38
|
"ext/extconf.rb",
|
42
39
|
"lib/statistics3.rb",
|
43
40
|
"lib/statistics3/base.rb",
|
@@ -51,18 +48,18 @@ Gem::Specification.new do |s|
|
|
51
48
|
s.homepage = "http://github.com/flajann2/statistics3".freeze
|
52
49
|
s.licenses = ["MIT".freeze]
|
53
50
|
s.required_ruby_version = Gem::Requirement.new(">= 2.2.2".freeze)
|
54
|
-
s.rubygems_version = "2.6.
|
51
|
+
s.rubygems_version = "2.6.11".freeze
|
55
52
|
s.summary = "Statistics3 library".freeze
|
56
53
|
|
57
54
|
if s.respond_to? :specification_version then
|
58
55
|
s.specification_version = 4
|
59
56
|
|
60
57
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
61
|
-
s.add_runtime_dependency(%q<
|
58
|
+
s.add_runtime_dependency(%q<semver2>.freeze, ["~> 3"])
|
62
59
|
s.add_runtime_dependency(%q<awesome_print>.freeze, ["~> 1"])
|
63
60
|
s.add_runtime_dependency(%q<colorize>.freeze, ["~> 0"])
|
64
61
|
s.add_runtime_dependency(%q<psych>.freeze, ["~> 2"])
|
65
|
-
s.add_development_dependency(%q<rspec>.freeze, ["~> 3
|
62
|
+
s.add_development_dependency(%q<rspec>.freeze, ["~> 3"])
|
66
63
|
s.add_development_dependency(%q<test-unit>.freeze, [">= 0"])
|
67
64
|
s.add_development_dependency(%q<yard>.freeze, ["~> 0.7"])
|
68
65
|
s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
@@ -76,11 +73,11 @@ Gem::Specification.new do |s|
|
|
76
73
|
s.add_development_dependency(%q<pry-rescue>.freeze, ["~> 1"])
|
77
74
|
s.add_development_dependency(%q<pry-stack_explorer>.freeze, ["~> 0"])
|
78
75
|
else
|
79
|
-
s.add_dependency(%q<
|
76
|
+
s.add_dependency(%q<semver2>.freeze, ["~> 3"])
|
80
77
|
s.add_dependency(%q<awesome_print>.freeze, ["~> 1"])
|
81
78
|
s.add_dependency(%q<colorize>.freeze, ["~> 0"])
|
82
79
|
s.add_dependency(%q<psych>.freeze, ["~> 2"])
|
83
|
-
s.add_dependency(%q<rspec>.freeze, ["~> 3
|
80
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3"])
|
84
81
|
s.add_dependency(%q<test-unit>.freeze, [">= 0"])
|
85
82
|
s.add_dependency(%q<yard>.freeze, ["~> 0.7"])
|
86
83
|
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
@@ -95,11 +92,11 @@ Gem::Specification.new do |s|
|
|
95
92
|
s.add_dependency(%q<pry-stack_explorer>.freeze, ["~> 0"])
|
96
93
|
end
|
97
94
|
else
|
98
|
-
s.add_dependency(%q<
|
95
|
+
s.add_dependency(%q<semver2>.freeze, ["~> 3"])
|
99
96
|
s.add_dependency(%q<awesome_print>.freeze, ["~> 1"])
|
100
97
|
s.add_dependency(%q<colorize>.freeze, ["~> 0"])
|
101
98
|
s.add_dependency(%q<psych>.freeze, ["~> 2"])
|
102
|
-
s.add_dependency(%q<rspec>.freeze, ["~> 3
|
99
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3"])
|
103
100
|
s.add_dependency(%q<test-unit>.freeze, [">= 0"])
|
104
101
|
s.add_dependency(%q<yard>.freeze, ["~> 0.7"])
|
105
102
|
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statistics3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Mitchell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: semver2
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: awesome_print
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 3
|
75
|
+
version: '3'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 3
|
82
|
+
version: '3'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: test-unit
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -273,10 +273,7 @@ files:
|
|
273
273
|
- Rakefile
|
274
274
|
- examples/mklist.rb
|
275
275
|
- examples/show.rb
|
276
|
-
- ext/Makefile
|
277
276
|
- ext/_statistics3.c
|
278
|
-
- ext/_statistics3.o
|
279
|
-
- ext/_statistics3.so
|
280
277
|
- ext/extconf.rb
|
281
278
|
- lib/statistics3.rb
|
282
279
|
- lib/statistics3/base.rb
|
@@ -306,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
303
|
version: '0'
|
307
304
|
requirements: []
|
308
305
|
rubyforge_project:
|
309
|
-
rubygems_version: 2.6.
|
306
|
+
rubygems_version: 2.6.11
|
310
307
|
signing_key:
|
311
308
|
specification_version: 4
|
312
309
|
summary: Statistics3 library
|
data/ext/Makefile
DELETED
@@ -1,260 +0,0 @@
|
|
1
|
-
|
2
|
-
SHELL = /bin/sh
|
3
|
-
|
4
|
-
# V=0 quiet, V=1 verbose. other values don't work.
|
5
|
-
V = 0
|
6
|
-
Q1 = $(V:1=)
|
7
|
-
Q = $(Q1:0=@)
|
8
|
-
ECHO1 = $(V:1=@:)
|
9
|
-
ECHO = $(ECHO1:0=@echo)
|
10
|
-
NULLCMD = :
|
11
|
-
|
12
|
-
#### Start of system configuration section. ####
|
13
|
-
|
14
|
-
srcdir = .
|
15
|
-
topdir = /home/alveric/.rbenv/versions/2.3.1/include/ruby-2.3.0
|
16
|
-
hdrdir = $(topdir)
|
17
|
-
arch_hdrdir = /home/alveric/.rbenv/versions/2.3.1/include/ruby-2.3.0/x86_64-linux
|
18
|
-
PATH_SEPARATOR = :
|
19
|
-
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
20
|
-
prefix = $(DESTDIR)/home/alveric/.rbenv/versions/2.3.1
|
21
|
-
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
22
|
-
rubyarchprefix = $(rubylibprefix)/$(arch)
|
23
|
-
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
24
|
-
exec_prefix = $(prefix)
|
25
|
-
vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
|
26
|
-
sitearchhdrdir = $(sitehdrdir)/$(sitearch)
|
27
|
-
rubyarchhdrdir = $(rubyhdrdir)/$(arch)
|
28
|
-
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
29
|
-
sitehdrdir = $(rubyhdrdir)/site_ruby
|
30
|
-
rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
31
|
-
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
32
|
-
vendorlibdir = $(vendordir)/$(ruby_version)
|
33
|
-
vendordir = $(rubylibprefix)/vendor_ruby
|
34
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
35
|
-
sitelibdir = $(sitedir)/$(ruby_version)
|
36
|
-
sitedir = $(rubylibprefix)/site_ruby
|
37
|
-
rubyarchdir = $(rubylibdir)/$(arch)
|
38
|
-
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
39
|
-
sitearchincludedir = $(includedir)/$(sitearch)
|
40
|
-
archincludedir = $(includedir)/$(arch)
|
41
|
-
sitearchlibdir = $(libdir)/$(sitearch)
|
42
|
-
archlibdir = $(libdir)/$(arch)
|
43
|
-
ridir = $(datarootdir)/$(RI_BASE_NAME)
|
44
|
-
mandir = $(datarootdir)/man
|
45
|
-
localedir = $(datarootdir)/locale
|
46
|
-
libdir = $(exec_prefix)/lib
|
47
|
-
psdir = $(docdir)
|
48
|
-
pdfdir = $(docdir)
|
49
|
-
dvidir = $(docdir)
|
50
|
-
htmldir = $(docdir)
|
51
|
-
infodir = $(datarootdir)/info
|
52
|
-
docdir = $(datarootdir)/doc/$(PACKAGE)
|
53
|
-
oldincludedir = $(DESTDIR)/usr/include
|
54
|
-
includedir = $(prefix)/include
|
55
|
-
localstatedir = $(prefix)/var
|
56
|
-
sharedstatedir = $(prefix)/com
|
57
|
-
sysconfdir = $(prefix)/etc
|
58
|
-
datadir = $(datarootdir)
|
59
|
-
datarootdir = $(prefix)/share
|
60
|
-
libexecdir = $(exec_prefix)/libexec
|
61
|
-
sbindir = $(exec_prefix)/sbin
|
62
|
-
bindir = $(exec_prefix)/bin
|
63
|
-
archdir = $(rubyarchdir)
|
64
|
-
|
65
|
-
|
66
|
-
CC = gcc
|
67
|
-
CXX = g++
|
68
|
-
LIBRUBY = $(LIBRUBY_SO)
|
69
|
-
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
70
|
-
LIBRUBYARG_SHARED = -Wl,-R$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
71
|
-
LIBRUBYARG_STATIC = -Wl,-R$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static
|
72
|
-
empty =
|
73
|
-
OUTFLAG = -o $(empty)
|
74
|
-
COUTFLAG = -o $(empty)
|
75
|
-
|
76
|
-
RUBY_EXTCONF_H =
|
77
|
-
cflags = $(optflags) $(debugflags) $(warnflags)
|
78
|
-
cxxflags = $(optflags) $(debugflags) $(warnflags)
|
79
|
-
optflags = -O3 -fno-fast-math
|
80
|
-
debugflags = -ggdb3
|
81
|
-
warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat
|
82
|
-
CCDLFLAGS = -fPIC
|
83
|
-
CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
|
84
|
-
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
85
|
-
DEFS =
|
86
|
-
CPPFLAGS = -I/home/alveric/.rbenv/versions/2.3.1/include $(DEFS) $(cppflags)
|
87
|
-
CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
|
88
|
-
ldflags = -L. -L/home/alveric/.rbenv/versions/2.3.1/lib -fstack-protector -rdynamic -Wl,-export-dynamic
|
89
|
-
dldflags =
|
90
|
-
ARCH_FLAG =
|
91
|
-
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
92
|
-
LDSHARED = $(CC) -shared
|
93
|
-
LDSHAREDXX = $(CXX) -shared
|
94
|
-
AR = ar
|
95
|
-
EXEEXT =
|
96
|
-
|
97
|
-
RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
|
98
|
-
RUBY_SO_NAME = ruby
|
99
|
-
RUBYW_INSTALL_NAME =
|
100
|
-
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
|
101
|
-
RUBYW_BASE_NAME = rubyw
|
102
|
-
RUBY_BASE_NAME = ruby
|
103
|
-
|
104
|
-
arch = x86_64-linux
|
105
|
-
sitearch = $(arch)
|
106
|
-
ruby_version = 2.3.0
|
107
|
-
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
108
|
-
RUBY = $(ruby)
|
109
|
-
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
|
110
|
-
|
111
|
-
RM = rm -f
|
112
|
-
RM_RF = $(RUBY) -run -e rm -- -rf
|
113
|
-
RMDIRS = rmdir --ignore-fail-on-non-empty -p
|
114
|
-
MAKEDIRS = /bin/mkdir -p
|
115
|
-
INSTALL = /usr/bin/install -c
|
116
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
117
|
-
INSTALL_DATA = $(INSTALL) -m 644
|
118
|
-
COPY = cp
|
119
|
-
TOUCH = exit >
|
120
|
-
|
121
|
-
#### End of system configuration section. ####
|
122
|
-
|
123
|
-
preload =
|
124
|
-
|
125
|
-
libpath = . $(libdir)
|
126
|
-
LIBPATH = -L. -L$(libdir) -Wl,-R$(libdir)
|
127
|
-
DEFFILE =
|
128
|
-
|
129
|
-
CLEANFILES = mkmf.log
|
130
|
-
DISTCLEANFILES =
|
131
|
-
DISTCLEANDIRS =
|
132
|
-
|
133
|
-
extout =
|
134
|
-
extout_prefix =
|
135
|
-
target_prefix =
|
136
|
-
LOCAL_LIBS =
|
137
|
-
LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl -lcrypt -lm -lc
|
138
|
-
ORIG_SRCS = _statistics3.c
|
139
|
-
SRCS = $(ORIG_SRCS)
|
140
|
-
OBJS = _statistics3.o
|
141
|
-
HDRS =
|
142
|
-
TARGET = _statistics3
|
143
|
-
TARGET_NAME = _statistics3
|
144
|
-
TARGET_ENTRY = Init_$(TARGET_NAME)
|
145
|
-
DLLIB = $(TARGET).so
|
146
|
-
EXTSTATIC =
|
147
|
-
STATIC_LIB =
|
148
|
-
|
149
|
-
TIMESTAMP_DIR = .
|
150
|
-
BINDIR = $(bindir)
|
151
|
-
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
152
|
-
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
153
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
154
|
-
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
155
|
-
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
156
|
-
|
157
|
-
TARGET_SO = $(DLLIB)
|
158
|
-
CLEANLIBS = $(TARGET).so
|
159
|
-
CLEANOBJS = *.o *.bak
|
160
|
-
|
161
|
-
all: $(DLLIB)
|
162
|
-
static: $(STATIC_LIB) install-rb
|
163
|
-
.PHONY: all install static install-so install-rb
|
164
|
-
.PHONY: clean clean-so clean-static clean-rb
|
165
|
-
|
166
|
-
clean-static::
|
167
|
-
clean-rb-default::
|
168
|
-
clean-rb::
|
169
|
-
clean-so::
|
170
|
-
clean: clean-so clean-static clean-rb-default clean-rb
|
171
|
-
-$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
|
172
|
-
|
173
|
-
distclean-rb-default::
|
174
|
-
distclean-rb::
|
175
|
-
distclean-so::
|
176
|
-
distclean-static::
|
177
|
-
distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
|
178
|
-
-$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
179
|
-
-$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
180
|
-
-$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
|
181
|
-
|
182
|
-
realclean: distclean
|
183
|
-
install: install-so install-rb
|
184
|
-
|
185
|
-
install-so: $(DLLIB) $(TIMESTAMP_DIR)/.RUBYARCHDIR.time
|
186
|
-
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
187
|
-
clean-static::
|
188
|
-
-$(Q)$(RM) $(STATIC_LIB)
|
189
|
-
install-rb: pre-install-rb install-rb-default
|
190
|
-
install-rb-default: pre-install-rb-default
|
191
|
-
pre-install-rb: Makefile
|
192
|
-
pre-install-rb-default: Makefile
|
193
|
-
pre-install-rb-default:
|
194
|
-
@$(NULLCMD)
|
195
|
-
$(TIMESTAMP_DIR)/.RUBYARCHDIR.time:
|
196
|
-
$(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
|
197
|
-
$(Q) $(TOUCH) $@
|
198
|
-
|
199
|
-
site-install: site-install-so site-install-rb
|
200
|
-
site-install-so: install-so
|
201
|
-
site-install-rb: install-rb
|
202
|
-
|
203
|
-
.SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
|
204
|
-
|
205
|
-
.cc.o:
|
206
|
-
$(ECHO) compiling $(<)
|
207
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
208
|
-
|
209
|
-
.cc.S:
|
210
|
-
$(ECHO) translating $(<)
|
211
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $<
|
212
|
-
|
213
|
-
.mm.o:
|
214
|
-
$(ECHO) compiling $(<)
|
215
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
216
|
-
|
217
|
-
.mm.S:
|
218
|
-
$(ECHO) translating $(<)
|
219
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $<
|
220
|
-
|
221
|
-
.cxx.o:
|
222
|
-
$(ECHO) compiling $(<)
|
223
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
224
|
-
|
225
|
-
.cxx.S:
|
226
|
-
$(ECHO) translating $(<)
|
227
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $<
|
228
|
-
|
229
|
-
.cpp.o:
|
230
|
-
$(ECHO) compiling $(<)
|
231
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
232
|
-
|
233
|
-
.cpp.S:
|
234
|
-
$(ECHO) translating $(<)
|
235
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $<
|
236
|
-
|
237
|
-
.c.o:
|
238
|
-
$(ECHO) compiling $(<)
|
239
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
240
|
-
|
241
|
-
.c.S:
|
242
|
-
$(ECHO) translating $(<)
|
243
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $<
|
244
|
-
|
245
|
-
.m.o:
|
246
|
-
$(ECHO) compiling $(<)
|
247
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
248
|
-
|
249
|
-
.m.S:
|
250
|
-
$(ECHO) translating $(<)
|
251
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $<
|
252
|
-
|
253
|
-
$(DLLIB): $(OBJS) Makefile
|
254
|
-
$(ECHO) linking shared-object $(DLLIB)
|
255
|
-
-$(Q)$(RM) $(@)
|
256
|
-
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
$(OBJS): $(HDRS) $(ruby_headers)
|
data/ext/_statistics3.o
DELETED
Binary file
|
data/ext/_statistics3.so
DELETED
Binary file
|