ministat 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -4
- data/lib/ministat.rb +16 -16
- data/pkg/ministat-1.2.0.gem +0 -0
- metadata +7 -7
data/README
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
ministat
|
2
|
-
|
3
|
-
ero.com
|
2
|
+
Author: H. Dean Hudson <dean@ero.com>
|
4
3
|
|
5
4
|
== DESCRIPTION:
|
6
5
|
|
@@ -27,7 +26,7 @@ at least to get you thinking about what it may take to do so.
|
|
27
26
|
|
28
27
|
== REQUIREMENTS:
|
29
28
|
|
30
|
-
|
29
|
+
None
|
31
30
|
|
32
31
|
== INSTALL:
|
33
32
|
|
@@ -37,7 +36,7 @@ at least to get you thinking about what it may take to do so.
|
|
37
36
|
|
38
37
|
(The MIT License)
|
39
38
|
|
40
|
-
Copyright (c) 2007 Dean Hudson
|
39
|
+
Copyright (c) 2007-2010 Dean Hudson
|
41
40
|
|
42
41
|
Permission is hereby granted, free of charge, to any person obtaining
|
43
42
|
a copy of this software and associated documentation files (the
|
data/lib/ministat.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'mathn'
|
2
2
|
|
3
3
|
module MiniStat
|
4
|
-
VERSION = '1.2.
|
4
|
+
VERSION = '1.2.1'
|
5
5
|
class Data
|
6
6
|
attr_reader :data
|
7
7
|
|
@@ -115,21 +115,21 @@ module MiniStat
|
|
115
115
|
end
|
116
116
|
|
117
117
|
# Put the histogram into a string if we have it
|
118
|
-
def hist
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
end
|
118
|
+
# def hist
|
119
|
+
# str = ''
|
120
|
+
# if defined? @hist
|
121
|
+
# # this is a textbook example of how to lie with statistics...
|
122
|
+
# # TODO: iterate over a range rather than @hist.keys--a histogram
|
123
|
+
# # produced out of the keys won't properly represent flat spots
|
124
|
+
# # with no data. or something like that. do as i say, not as i do.
|
125
|
+
# @hist.keys do |k|
|
126
|
+
# str << "[#{k}\t] "
|
127
|
+
# 1.upto(@hist[k].to_i) {|i| str << "*"}
|
128
|
+
# str << "\n"
|
129
|
+
# end
|
130
|
+
# end
|
131
|
+
# str
|
132
|
+
# end
|
133
133
|
|
134
134
|
# Return a string with statisical info about a dataset.
|
135
135
|
def to_s
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ministat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dean Hudson
|
@@ -21,8 +21,7 @@ dependencies: []
|
|
21
21
|
|
22
22
|
description: |
|
23
23
|
ministat
|
24
|
-
|
25
|
-
ero.com
|
24
|
+
Author: H. Dean Hudson <dean@ero.com>
|
26
25
|
|
27
26
|
== DESCRIPTION:
|
28
27
|
|
@@ -49,7 +48,7 @@ description: |
|
|
49
48
|
|
50
49
|
== REQUIREMENTS:
|
51
50
|
|
52
|
-
|
51
|
+
None
|
53
52
|
|
54
53
|
== INSTALL:
|
55
54
|
|
@@ -59,7 +58,7 @@ description: |
|
|
59
58
|
|
60
59
|
(The MIT License)
|
61
60
|
|
62
|
-
Copyright (c) 2007 Dean Hudson
|
61
|
+
Copyright (c) 2007-2010 Dean Hudson
|
63
62
|
|
64
63
|
Permission is hereby granted, free of charge, to any person obtaining
|
65
64
|
a copy of this software and associated documentation files (the
|
@@ -89,6 +88,7 @@ extra_rdoc_files: []
|
|
89
88
|
|
90
89
|
files:
|
91
90
|
- History.txt
|
91
|
+
- pkg/ministat-1.2.0.gem
|
92
92
|
- lib/ministat.rb
|
93
93
|
- test/test_ministat.rb
|
94
94
|
- test/data/2.dat
|