feldtruby 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -156,17 +156,21 @@ end
156
156
  # Plotting data sets in R with ggplot2 and save them to files.
157
157
  module FeldtRuby::Statistics::Plotting
158
158
 
159
- def plot_2dims(csvFilePath, graphFilePath, xName, yName, title = "scatterplot", width = 1200, height = 900)
159
+ def plot_2dims(csvFilePath, graphFilePath, xName, yName, title = "scatterplot", format = "pdf", width = 7, height = 5)
160
160
 
161
161
  include_library("ggplot2")
162
162
 
163
+ gfxFile = File.dirname(graphFilePath) + "/" + File.basename(graphFilePath, "." + format) + "." + format
164
+
163
165
  pre = [
164
- "td <- read.csv(#{csvFilePath.inspect}",
165
- "png(#{graphFilePath.inspect}, width=#{width}, height=#{height})"
166
+ "data <- read.csv(#{csvFilePath.inspect})",
167
+ "#{format}(#{gfxFile.inspect}, width=#{width}, height=#{height})"
166
168
  ]
167
169
 
168
- plot = yield()
169
- plot.last << " theme_bw(base_size = 12, base_family = \"\")"
170
+ #plot = ["suppressWarnings( " + yield().join(" ") + " + theme_bw(base_size = 12, base_family = \"\") )"]
171
+ plot = [yield().join(" ") + " + theme_bw(base_size = 12, base_family = \"\")"]
172
+ #plot = yield()
173
+ #plot << " + theme_bw(base_size = 16, base_family = \"\")"
170
174
 
171
175
  post = [
172
176
  "dev.off()"
@@ -178,10 +182,10 @@ module FeldtRuby::Statistics::Plotting
178
182
  end
179
183
 
180
184
  # Scatter plot of columns xName vs yName in csvFilePath is saved to graphFilePath.
181
- def scatter_plot(csvFilePath, graphFilePath, xName, yName, title = "scatterplot", smoothFit = true, width = 1200, height = 900)
182
- plot_2dims(csvFilePath, graphFilePath, xName, yName, title, width, height) {
185
+ def scatter_plot(csvFilePath, graphFilePath, xName, yName, title = "scatterplot", smoothFit = true, format = "pdf", width = 7, height = 5)
186
+ plot_2dims(csvFilePath, graphFilePath, xName, yName, title, format, width, height) {
183
187
  [
184
- "ggplot(td, aes(#{xName}, #{yName})) + ",
188
+ "ggplot(data, aes(#{xName}, #{yName})) + ",
185
189
  " geom_point(shape = 1) + ", # Each point is non-filled circle
186
190
  (smoothFit ? " geom_smooth() + " : nil),
187
191
  " ggtitle(#{title.inspect})"
@@ -190,9 +194,9 @@ module FeldtRuby::Statistics::Plotting
190
194
  end
191
195
 
192
196
  # Scatter plot of columns xName vs yName in csvFilePath is saved to graphFilePath.
193
- def hexbin_heatmap(csvFilePath, graphFilePath, xName, yName, title = "heatmap", bins = 30, width = 1200, height = 900)
194
- plot_2dims(csvFilePath, graphFilePath, xName, yName, title, width, height) {
195
- [ "ggplot(td, aes(#{xName}, #{yName})) + geom_hex( bins = #{bins} ) + ggtitle(\"#{title}\")"]
197
+ def hexbin_heatmap(csvFilePath, graphFilePath, xName, yName, title = "heatmap", bins = 30, format = "pdf", width = 7, height = 5)
198
+ plot_2dims(csvFilePath, graphFilePath, xName, yName, title, format, width, height) {
199
+ [ "ggplot(data, aes(#{xName}, #{yName})) + geom_hex( bins = #{bins} ) + ggtitle(\"#{title}\")"]
196
200
  }
197
201
  end
198
202
  end
@@ -1,3 +1,3 @@
1
1
  module FeldtRuby
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
@@ -89,11 +89,43 @@ require 'feldtruby/minitest_extensions'
89
89
  describe "Test Statistics but with the extensions to MiniTest framework" do
90
90
  it "can use assert_same_proportions" do
91
91
  assert_similar_proportions( [1]*10 + [2]*10 )
92
- # This should fail but I found now way to test it since it uses the MiniTest framework itself...
92
+ # This should fail but I found no way to test it since it uses the MiniTest framework itself...
93
93
  # assert_similar_proportions( [1]*60 + [2]*40 )
94
94
  end
95
95
 
96
96
  it "can use must_have_similar_proportions" do
97
97
  ([1]*10 + [2]*10).must_have_similar_proportions
98
98
  end
99
+ end
100
+
101
+ describe "Plotting" do
102
+
103
+ it "can do a scatter plot" do
104
+
105
+ d = File.dirname(__FILE__) + "/"
106
+ filename = d + "tmp.csv"
107
+ out = d + "scatterplot.pdf"
108
+ RC.scatter_plot(filename, out, "size", "height",
109
+ "Scatterplot", true)
110
+
111
+ File.exist?(out).must_equal true
112
+
113
+ File.delete out
114
+
115
+ end
116
+
117
+ it "can do a hexbin heatmap plot" do
118
+
119
+ d = File.dirname(__FILE__) + "/"
120
+ filename = d + "tmp.csv"
121
+ out = d + "heatmap.pdf"
122
+
123
+ RC.hexbin_heatmap(filename, out, "size", "height",
124
+ "Hexbin heatmap", 30)
125
+
126
+ File.exist?(out).must_equal true
127
+
128
+ File.delete out
129
+
130
+ end
99
131
  end
data/test/tmp.csv ADDED
@@ -0,0 +1,799 @@
1
+ balance,height,size
2
+ 0.0,14,73
3
+ 0.0,2,2
4
+ 0.0,1,1
5
+ 0.0,6,7
6
+ 0.0,2,3
7
+ 0.0,1,1
8
+ 0.0,3,4
9
+ 0.0,1,1
10
+ 0.0,1,1
11
+ 0.0,2,3
12
+ 0.0,1,1
13
+ 0.0,3,3
14
+ 0.0,1,1
15
+ 0.0,6,12
16
+ 0.0,2,2
17
+ 0.3726779962499649,3,8
18
+ 0.0,5,7
19
+ 0.0,1,1
20
+ 0.0,2,3
21
+ 0.0,1,1
22
+ 0.0,1,1
23
+ 0.0,4,9
24
+ 0.0,1,1
25
+ 0.0,1,1
26
+ 11.027239001672177,30,364
27
+ 0.0,1,1
28
+ 1.0,4,5
29
+ 2.160246899469287,7,18
30
+ 0.0,1,1
31
+ 0.0,2,2
32
+ 0.0,2,2
33
+ 0.0,1,1
34
+ 0.0,1,1
35
+ 0.0,1,1
36
+ 0.5,3,6
37
+ 0.0,1,1
38
+ 0.0,1,1
39
+ 0.0,2,3
40
+ 0.0,1,1
41
+ 0.5,3,7
42
+ 0.0,1,1
43
+ 0.0,1,1
44
+ 0.0,2,3
45
+ 1.0,5,13
46
+ 0.0,1,1
47
+ 2.598076211353316,9,35
48
+ 0.0,1,1
49
+ 0.0,1,1
50
+ 0.0,1,1
51
+ 0.0,1,1
52
+ 0.0,5,6
53
+ 0.0,2,3
54
+ 0.0,1,1
55
+ 0.0,2,2
56
+ 0.0,2,2
57
+ 0.0,1,1
58
+ 12.387090053761618,34,419
59
+ 2.280350850198276,8,44
60
+ 0.0,1,1
61
+ 0.0,1,1
62
+ 0.0,1,1
63
+ 0.0,2,2
64
+ 2.8,8,26
65
+ 0.0,1,1
66
+ 5.15363949069005,14,179
67
+ 0.0,2,3
68
+ 1.5,5,7
69
+ 2.5,8,18
70
+ 0.0,1,1
71
+ 0.0,1,1
72
+ 0.5,3,4
73
+ 0.0,1,1
74
+ 0.0,3,3
75
+ 0.0,1,1
76
+ 79.00158226263572,189,7555
77
+ 0.0,1,1
78
+ 0.0,1,1
79
+ 0.0,1,1
80
+ 0.0,1,1
81
+ 0.0,2,3
82
+ 0.0,1,1
83
+ 0.0,1,1
84
+ 0.0,2,2
85
+ 0.0,1,1
86
+ 0.0,3,3
87
+ 0.0,2,2
88
+ 0.0,3,3
89
+ 0.0,1,1
90
+ 0.0,2,2
91
+ 0.0,1,1
92
+ 0.0,2,2
93
+ 0.0,1,1
94
+ 0.0,1,1
95
+ 0.0,1,1
96
+ 0.0,4,4
97
+ 0.3726779962499649,3,11
98
+ 2.0,6,13
99
+ 0.0,1,1
100
+ 0.0,1,1
101
+ 3.5,9,27
102
+ 0.5,3,4
103
+ 0.0,8,25
104
+ 0.0,1,1
105
+ 0.0,1,1
106
+ 0.0,1,1
107
+ 29.272664533466862,66,1256
108
+ 0.0,1,1
109
+ 0.0,2,2
110
+ 0.0,1,1
111
+ 0.0,1,1
112
+ 0.0,1,1
113
+ 0.0,22,191
114
+ 0.0,1,1
115
+ 0.8660254037844386,4,7
116
+ 0.0,1,1
117
+ 1.4142135623730951,5,7
118
+ 7.22841614740048,19,56
119
+ 0.0,1,1
120
+ 8.993825042154695,22,104
121
+ 0.0,2,2
122
+ 0.0,1,1
123
+ 1.0,4,5
124
+ 0.0,2,2
125
+ 0.0,1,1
126
+ 1.632993161855452,6,12
127
+ 0.0,1,1
128
+ 0.0,1,1
129
+ 0.0,1,1
130
+ 0.0,1,1
131
+ 0.0,1,1
132
+ 0.0,4,5
133
+ 0.0,3,3
134
+ 0.0,1,1
135
+ 1.124858267715973,5,19
136
+ 0.9428090415820634,4,6
137
+ 0.0,4,5
138
+ 0.0,1,1
139
+ 0.0,1,1
140
+ 0.0,1,1
141
+ 1.8856180831641267,6,10
142
+ 0.0,1,1
143
+ 0.0,1,1
144
+ 0.0,2,2
145
+ 0.0,1,1
146
+ 0.0,3,3
147
+ 0.0,3,3
148
+ 0.0,1,1
149
+ 0.0,1,1
150
+ 0.0,1,1
151
+ 0.0,2,3
152
+ 0.0,1,1
153
+ 0.0,1,1
154
+ 0.0,1,1
155
+ 0.0,2,4
156
+ 0.0,3,3
157
+ 0.0,1,1
158
+ 0.0,1,1
159
+ 0.0,1,1
160
+ 0.0,1,1
161
+ 0.0,1,1
162
+ 0.0,1,1
163
+ 0.0,2,2
164
+ 13.0,31,943
165
+ 0.0,3,3
166
+ 3.5,9,22
167
+ 0.0,1,1
168
+ 0.0,1,1
169
+ 9.5,24,83
170
+ 0.0,2,2
171
+ 0.0,1,1
172
+ 0.0,1,1
173
+ 0.0,1,1
174
+ 0.0,2,2
175
+ 0.4714045207910317,3,5
176
+ 0.0,3,3
177
+ 0.0,2,3
178
+ 0.0,1,1
179
+ 2.8284271247461903,8,18
180
+ 1.5,5,7
181
+ 23.338094752285727,52,396
182
+ 0.0,1,1
183
+ 0.0,1,1
184
+ 0.0,2,3
185
+ 22.37604746151563,54,482
186
+ 3.091206165165235,9,24
187
+ 0.0,2,3
188
+ 0.0,1,1
189
+ 0.0,1,1
190
+ 0.0,1,1
191
+ 0.0,1,1
192
+ 0.0,1,1
193
+ 0.0,2,2
194
+ 0.0,1,1
195
+ 0.0,1,1
196
+ 0.0,1,1
197
+ 0.5,3,4
198
+ 0.0,1,1
199
+ 0.0,1,1
200
+ 0.0,1,1
201
+ 0.0,2,2
202
+ 0.0,2,2
203
+ 4.0,10,30
204
+ 6.800735254367722,22,286
205
+ 0.0,1,1
206
+ 8.48528137423857,20,262
207
+ 0.0,1,1
208
+ 0.0,1,1
209
+ 0.0,1,1
210
+ 0.0,1,1
211
+ 0.0,7,8
212
+ 0.0,1,1
213
+ 0.0,2,2
214
+ 0.4714045207910317,4,8
215
+ 0.0,2,3
216
+ 0.0,1,1
217
+ 0.0,1,1
218
+ 0.0,2,2
219
+ 0.0,1,1
220
+ 0.0,1,1
221
+ 0.0,2,2
222
+ 0.0,1,1
223
+ 0.0,3,3
224
+ 0.0,1,1
225
+ 0.0,1,1
226
+ 0.6998542122237652,4,15
227
+ 0.0,1,1
228
+ 0.0,1,1
229
+ 0.0,1,1
230
+ 0.0,1,1
231
+ 0.0,1,1
232
+ 0.0,1,1
233
+ 0.0,3,5
234
+ 0.0,1,1
235
+ 0.0,1,1
236
+ 2.4411439272335804,10,43
237
+ 0.0,2,2
238
+ 0.0,1,1
239
+ 0.0,2,2
240
+ 0.0,2,2
241
+ 0.0,1,1
242
+ 0.5,6,16
243
+ 0.0,1,1
244
+ 0.0,1,1
245
+ 0.0,1,1
246
+ 0.0,1,1
247
+ 3.0,8,11
248
+ 0.0,3,3
249
+ 25.0,52,537
250
+ 0.0,1,1
251
+ 0.0,1,1
252
+ 0.0,2,2
253
+ 2.0,6,7
254
+ 0.8660254037844386,4,7
255
+ 0.0,1,1
256
+ 8.0,18,82
257
+ 0.0,1,1
258
+ 3.0,9,21
259
+ 1.247219128924647,5,15
260
+ 0.0,11,34
261
+ 0.0,2,2
262
+ 0.0,1,1
263
+ 0.0,3,5
264
+ 0.0,1,1
265
+ 0.0,3,5
266
+ 0.0,1,1
267
+ 0.0,1,1
268
+ 1.4142135623730951,5,7
269
+ 0.0,1,1
270
+ 0.0,1,1
271
+ 0.0,3,3
272
+ 0.0,2,2
273
+ 0.0,1,1
274
+ 0.0,1,1
275
+ 0.0,1,1
276
+ 0.0,1,1
277
+ 0.0,21,81
278
+ 0.0,3,3
279
+ 0.0,1,1
280
+ 0.0,1,1
281
+ 0.0,1,1
282
+ 1.5,12,58
283
+ 0.0,1,1
284
+ 0.0,1,1
285
+ 0.6998542122237652,4,13
286
+ 0.0,2,2
287
+ 0.0,1,1
288
+ 0.0,1,1
289
+ 0.0,1,1
290
+ 0.0,1,1
291
+ 0.0,2,2
292
+ 0.0,5,8
293
+ 0.0,2,2
294
+ 1.0,5,9
295
+ 0.0,8,15
296
+ 0.0,1,1
297
+ 0.0,1,1
298
+ 0.0,1,1
299
+ 0.0,1,1
300
+ 1.0,5,11
301
+ 0.0,1,1
302
+ 0.0,1,1
303
+ 0.0,1,1
304
+ 0.0,45,489
305
+ 0.0,1,1
306
+ 0.0,1,1
307
+ 0.0,1,1
308
+ 0.0,1,1
309
+ 0.0,1,1
310
+ 0.0,2,2
311
+ 0.0,1,1
312
+ 0.0,31,369
313
+ 0.0,2,2
314
+ 0.0,1,1
315
+ 0.0,1,1
316
+ 0.0,1,1
317
+ 0.4714045207910317,3,6
318
+ 0.0,3,3
319
+ 0.0,2,2
320
+ 0.0,1,1
321
+ 0.0,1,1
322
+ 0.0,5,8
323
+ 0.5,3,4
324
+ 0.0,9,16
325
+ 0.0,1,1
326
+ 0.0,2,2
327
+ 0.0,1,1
328
+ 0.0,1,1
329
+ 0.0,3,7
330
+ 0.0,3,3
331
+ 0.0,1,1
332
+ 0.0,3,3
333
+ 0.0,1,1
334
+ 0.0,1,1
335
+ 0.0,1,1
336
+ 0.0,4,5
337
+ 0.0,2,3
338
+ 0.0,1,1
339
+ 0.0,2,2
340
+ 0.0,1,1
341
+ 10.03327796219494,25,222
342
+ 0.0,1,1
343
+ 1.5,5,9
344
+ 0.0,2,2
345
+ 0.0,1,1
346
+ 0.0,2,2
347
+ 0.0,4,11
348
+ 0.0,1,1
349
+ 5.715476066494082,15,56
350
+ 0.9428090415820634,4,9
351
+ 0.0,1,1
352
+ 0.0,5,6
353
+ 0.0,1,1
354
+ 0.5,3,4
355
+ 0.0,1,1
356
+ 0.0,1,1
357
+ 0.0,2,2
358
+ 0.5,3,4
359
+ 0.0,1,1
360
+ 0.5,3,7
361
+ 5.338539126015656,15,102
362
+ 0.0,1,1
363
+ 0.0,17,39
364
+ 0.0,1,1
365
+ 0.5,3,4
366
+ 0.0,1,1
367
+ 0.0,5,7
368
+ 0.0,1,1
369
+ 0.0,1,1
370
+ 0.0,1,1
371
+ 0.816496580927726,4,8
372
+ 0.0,3,4
373
+ 0.0,1,1
374
+ 36.50342449688796,90,1720
375
+ 0.0,1,1
376
+ 0.0,4,6
377
+ 0.0,18,139
378
+ 0.0,1,1
379
+ 3.7416573867739413,14,114
380
+ 0.0,2,2
381
+ 0.0,3,7
382
+ 1.0,4,6
383
+ 0.0,2,2
384
+ 0.0,1,1
385
+ 4.714045207910317,12,48
386
+ 0.0,1,1
387
+ 0.0,1,1
388
+ 0.0,1,1
389
+ 0.0,1,1
390
+ 0.0,2,2
391
+ 0.0,1,1
392
+ 2.943920288775949,9,22
393
+ 0.0,3,3
394
+ 1.5,5,13
395
+ 0.0,1,1
396
+ 0.0,8,43
397
+ 0.0,1,1
398
+ 0.0,1,1
399
+ 0.7483314773547883,4,15
400
+ 0.0,1,1
401
+ 0.0,1,1
402
+ 0.0,1,1
403
+ 0.0,1,1
404
+ 0.0,5,6
405
+ 0.0,2,2
406
+ 0.0,2,2
407
+ 0.0,1,1
408
+ 0.0,1,1
409
+ 0.0,1,1
410
+ 0.0,1,1
411
+ 0.0,1,1
412
+ 0.0,1,1
413
+ 0.0,1,1
414
+ 0.0,1,1
415
+ 0.7284313590846836,4,12
416
+ 0.8660254037844386,4,8
417
+ 0.0,1,1
418
+ 0.0,1,1
419
+ 0.0,1,1
420
+ 0.0,1,1
421
+ 0.5,3,4
422
+ 0.0,1,1
423
+ 0.0,1,1
424
+ 0.0,1,1
425
+ 0.0,1,1
426
+ 0.0,1,1
427
+ 28.994252303976847,64,1219
428
+ 0.0,1,1
429
+ 0.0,1,1
430
+ 0.0,2,2
431
+ 0.0,2,2
432
+ 0.0,1,1
433
+ 0.0,1,1
434
+ 1.0,5,9
435
+ 0.0,9,33
436
+ 0.5,4,6
437
+ 0.0,2,2
438
+ 0.0,1,1
439
+ 0.0,1,1
440
+ 0.0,1,1
441
+ 0.4714045207910317,3,7
442
+ 0.0,9,14
443
+ 0.0,1,1
444
+ 1.0,5,16
445
+ 0.0,1,1
446
+ 0.0,1,1
447
+ 0.0,2,2
448
+ 0.0,5,6
449
+ 0.0,2,2
450
+ 0.0,1,1
451
+ 0.0,18,124
452
+ 0.0,2,2
453
+ 0.0,5,7
454
+ 0.0,1,1
455
+ 0.0,1,1
456
+ 0.0,4,5
457
+ 0.0,1,1
458
+ 0.5,3,4
459
+ 0.4330127018922193,3,6
460
+ 0.0,1,1
461
+ 0.0,1,1
462
+ 0.0,21,96
463
+ 0.0,11,36
464
+ 0.0,1,1
465
+ 2.5,8,19
466
+ 0.0,1,1
467
+ 0.0,1,1
468
+ 0.5,3,4
469
+ 0.0,1,1
470
+ 0.0,2,2
471
+ 0.0,5,9
472
+ 0.0,1,1
473
+ 0.0,5,12
474
+ 0.0,1,1
475
+ 0.0,3,3
476
+ 0.0,2,2
477
+ 0.0,1,1
478
+ 0.0,1,1
479
+ 0.0,2,2
480
+ 0.0,1,1
481
+ 0.0,1,1
482
+ 0.0,1,1
483
+ 0.0,1,1
484
+ 0.0,2,2
485
+ 0.0,1,1
486
+ 0.0,1,1
487
+ 4.330127018922194,13,78
488
+ 0.0,2,2
489
+ 0.0,5,8
490
+ 0.0,8,14
491
+ 0.4714045207910317,3,5
492
+ 0.0,1,1
493
+ 0.0,1,1
494
+ 1.247219128924647,5,13
495
+ 0.0,1,1
496
+ 0.0,2,2
497
+ 0.0,2,2
498
+ 0.0,1,1
499
+ 0.0,3,4
500
+ 0.0,1,1
501
+ 0.816496580927726,4,13
502
+ 0.0,9,18
503
+ 0.0,1,1
504
+ 11.313708498984761,26,148
505
+ 0.0,3,3
506
+ 0.0,1,1
507
+ 0.0,1,1
508
+ 4.988876515698588,14,77
509
+ 0.0,1,1
510
+ 0.0,2,2
511
+ 0.0,9,15
512
+ 0.0,3,3
513
+ 2.0976176963403033,8,30
514
+ 0.0,17,115
515
+ 0.0,1,1
516
+ 0.0,1,1
517
+ 0.5,3,4
518
+ 0.0,1,1
519
+ 0.0,1,1
520
+ 0.0,1,1
521
+ 0.0,1,1
522
+ 0.0,1,1
523
+ 0.0,1,1
524
+ 0.0,1,1
525
+ 0.0,1,1
526
+ 0.0,1,1
527
+ 0.0,1,1
528
+ 0.0,2,3
529
+ 0.0,1,1
530
+ 0.5,3,4
531
+ 0.5,3,4
532
+ 0.0,1,1
533
+ 0.816496580927726,4,12
534
+ 0.0,1,1
535
+ 5.6,16,123
536
+ 0.4330127018922193,3,8
537
+ 0.0,1,1
538
+ 0.0,1,1
539
+ 2.165063509461097,8,28
540
+ 0.0,1,1
541
+ 0.0,1,1
542
+ 1.5,5,9
543
+ 0.0,17,109
544
+ 9.428090415820632,22,210
545
+ 2.5,7,16
546
+ 0.0,1,1
547
+ 0.0,2,2
548
+ 0.0,1,1
549
+ 4.636809247747852,13,73
550
+ 0.0,2,3
551
+ 0.0,1,1
552
+ 0.0,4,7
553
+ 0.0,1,1
554
+ 0.0,2,2
555
+ 0.0,1,1
556
+ 0.0,1,1
557
+ 0.0,1,1
558
+ 0.0,1,1
559
+ 0.0,1,1
560
+ 0.0,1,1
561
+ 0.0,1,1
562
+ 0.0,1,1
563
+ 3.2998316455372216,9,25
564
+ 0.0,7,11
565
+ 0.0,1,1
566
+ 0.0,2,5
567
+ 0.0,2,2
568
+ 0.8660254037844386,4,9
569
+ 0.0,12,40
570
+ 0.0,1,1
571
+ 0.0,3,3
572
+ 0.0,5,8
573
+ 0.0,1,1
574
+ 0.0,1,1
575
+ 0.0,2,2
576
+ 0.0,1,1
577
+ 13.5,40,455
578
+ 5.5,13,95
579
+ 0.0,1,1
580
+ 0.0,9,24
581
+ 0.0,1,1
582
+ 0.0,1,1
583
+ 1.224744871391589,5,9
584
+ 0.9428090415820634,4,6
585
+ 0.0,2,2
586
+ 1.4142135623730951,5,7
587
+ 0.0,1,1
588
+ 0.0,2,2
589
+ 2.0,6,16
590
+ 0.0,2,2
591
+ 1.0,4,6
592
+ 0.0,1,1
593
+ 0.0,2,2
594
+ 0.0,1,1
595
+ 0.0,1,1
596
+ 0.0,1,1
597
+ 0.0,1,1
598
+ 0.5,3,4
599
+ 0.0,7,9
600
+ 0.0,1,1
601
+ 0.0,1,1
602
+ 0.0,1,1
603
+ 0.0,1,1
604
+ 0.0,1,1
605
+ 0.0,2,2
606
+ 0.0,1,1
607
+ 0.0,2,2
608
+ 0.0,5,9
609
+ 0.0,1,1
610
+ 1.0,4,5
611
+ 0.0,1,1
612
+ 0.0,2,3
613
+ 5.5,13,54
614
+ 0.0,1,1
615
+ 0.0,1,1
616
+ 0.0,4,4
617
+ 0.0,1,1
618
+ 0.0,1,1
619
+ 0.0,1,1
620
+ 0.0,1,1
621
+ 0.0,2,2
622
+ 0.0,3,4
623
+ 0.0,1,1
624
+ 0.0,7,13
625
+ 0.0,1,1
626
+ 0.0,1,1
627
+ 0.0,1,1
628
+ 2.8284271247461903,8,18
629
+ 0.0,2,2
630
+ 0.0,1,1
631
+ 0.9797958971132713,4,10
632
+ 0.0,1,1
633
+ 0.0,3,3
634
+ 0.0,1,1
635
+ 0.0,2,3
636
+ 0.4330127018922193,3,6
637
+ 0.0,1,1
638
+ 0.0,1,1
639
+ 0.0,1,1
640
+ 4.0,17,89
641
+ 0.0,2,3
642
+ 0.0,1,1
643
+ 0.0,1,1
644
+ 0.0,1,1
645
+ 0.0,1,1
646
+ 0.0,1,1
647
+ 0.0,1,1
648
+ 2.384848003542364,8,35
649
+ 0.0,1,1
650
+ 0.0,5,7
651
+ 0.0,2,2
652
+ 1.0,4,7
653
+ 0.0,20,120
654
+ 1.7320508075688772,6,15
655
+ 0.0,1,1
656
+ 0.0,3,3
657
+ 0.0,1,1
658
+ 0.0,1,1
659
+ 0.0,1,1
660
+ 0.0,1,1
661
+ 0.0,1,1
662
+ 0.0,1,1
663
+ 0.0,2,2
664
+ 2.5,7,13
665
+ 0.0,5,6
666
+ 0.0,4,4
667
+ 0.0,3,3
668
+ 0.0,5,9
669
+ 0.0,2,2
670
+ 0.0,1,1
671
+ 0.0,1,1
672
+ 0.0,1,1
673
+ 0.0,3,3
674
+ 0.0,1,1
675
+ 0.0,1,1
676
+ 0.0,1,1
677
+ 1.5,6,10
678
+ 0.0,1,1
679
+ 0.0,2,2
680
+ 0.0,2,2
681
+ 0.0,2,2
682
+ 0.0,1,1
683
+ 18.958414691194665,69,1909
684
+ 0.0,13,29
685
+ 0.0,1,1
686
+ 0.0,1,1
687
+ 0.4714045207910317,3,5
688
+ 0.0,1,1
689
+ 0.0,1,1
690
+ 0.0,1,1
691
+ 0.0,1,1
692
+ 0.0,2,3
693
+ 0.0,1,1
694
+ 0.0,1,1
695
+ 0.0,2,2
696
+ 0.0,1,1
697
+ 0.0,1,1
698
+ 0.0,4,19
699
+ 0.0,1,1
700
+ 0.0,1,1
701
+ 0.0,1,1
702
+ 0.0,1,1
703
+ 1.5,5,10
704
+ 0.0,1,1
705
+ 0.4714045207910317,3,7
706
+ 0.5,3,5
707
+ 0.0,1,1
708
+ 0.0,2,2
709
+ 0.0,2,2
710
+ 0.0,1,1
711
+ 0.0,1,1
712
+ 0.5,3,4
713
+ 12.5,27,530
714
+ 0.0,1,1
715
+ 0.0,1,1
716
+ 0.0,1,1
717
+ 0.0,1,1
718
+ 0.0,1,1
719
+ 2.0615528128088303,7,17
720
+ 0.0,4,4
721
+ 0.0,3,3
722
+ 0.0,1,1
723
+ 0.0,1,1
724
+ 0.0,2,2
725
+ 0.0,2,2
726
+ 0.0,2,2
727
+ 0.0,2,3
728
+ 0.0,2,3
729
+ 0.0,4,4
730
+ 0.0,1,1
731
+ 0.0,2,2
732
+ 0.0,1,1
733
+ 4.5431266766402185,14,114
734
+ 0.0,2,2
735
+ 0.0,2,3
736
+ 1.0,4,9
737
+ 0.0,2,2
738
+ 0.0,1,1
739
+ 0.0,18,126
740
+ 0.0,1,1
741
+ 0.0,1,1
742
+ 0.0,2,2
743
+ 0.0,2,2
744
+ 0.0,1,1
745
+ 3.091206165165235,9,101
746
+ 0.0,1,1
747
+ 0.0,2,2
748
+ 0.0,1,1
749
+ 0.0,1,1
750
+ 2.598076211353316,8,21
751
+ 3.7712361663282534,10,95
752
+ 0.0,43,804
753
+ 0.0,1,1
754
+ 0.5,3,4
755
+ 0.0,2,2
756
+ 0.0,3,3
757
+ 0.0,2,2
758
+ 0.0,2,2
759
+ 0.0,1,1
760
+ 0.0,3,3
761
+ 0.0,1,1
762
+ 0.0,2,2
763
+ 0.0,1,1
764
+ 0.0,16,93
765
+ 0.0,1,1
766
+ 3.2998316455372216,9,17
767
+ 1.5,7,32
768
+ 0.0,1,1
769
+ 0.0,1,1
770
+ 0.0,1,1
771
+ 0.0,1,1
772
+ 0.0,1,1
773
+ 1.5,5,8
774
+ 0.0,1,1
775
+ 0.0,1,1
776
+ 0.0,7,9
777
+ 0.0,4,11
778
+ 0.0,7,15
779
+ 0.0,1,1
780
+ 0.0,1,1
781
+ 0.0,2,2
782
+ 0.0,1,1
783
+ 0.0,1,1
784
+ 0.0,2,2
785
+ 0.0,1,1
786
+ 0.0,3,3
787
+ 0.0,1,1
788
+ 0.0,1,1
789
+ 1.3844373104863459,6,23
790
+ 0.0,1,1
791
+ 20.98147330914162,48,1551
792
+ 0.0,6,9
793
+ 0.0,1,1
794
+ 0.0,1,1
795
+ 0.0,1,1
796
+ 0.0,1,1
797
+ 0.0,1,1
798
+ 0.0,1,1
799
+ 0.0,1,1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feldtruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -118,6 +118,7 @@ files:
118
118
  - test/test_time.rb
119
119
  - test/test_vector.rb
120
120
  - test/test_word_counter.rb
121
+ - test/tmp.csv
121
122
  homepage: https://github.com/robertfeldt/feldtruby
122
123
  licenses: []
123
124
  post_install_message:
@@ -167,3 +168,4 @@ test_files:
167
168
  - test/test_time.rb
168
169
  - test/test_vector.rb
169
170
  - test/test_word_counter.rb
171
+ - test/tmp.csv