quantile_estimator 0.0.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 +7 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +17 -0
- data/LICENSE.txt +22 -0
- data/README.md +85 -0
- data/Rakefile +9 -0
- data/benchmark.rb +21 -0
- data/doc/Cursor.html +422 -0
- data/doc/Estimator.html +779 -0
- data/doc/Invariant.html +115 -0
- data/doc/Invariant/Biased.html +268 -0
- data/doc/Invariant/Invariant.html +193 -0
- data/doc/Invariant/SingleTarget.html +278 -0
- data/doc/Invariant/Targeted.html +278 -0
- data/doc/Item.html +620 -0
- data/doc/Quantile.html +270 -0
- data/doc/QuantileEstimator.html +117 -0
- data/doc/_index.html +211 -0
- data/doc/class_list.html +54 -0
- data/doc/compression.png +0 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +186 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +186 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +221 -0
- data/doc/time.png +0 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/estimator.rb +120 -0
- data/lib/quantile_estimator/cursor.rb +24 -0
- data/lib/quantile_estimator/invariant.rb +47 -0
- data/lib/quantile_estimator/item.rb +21 -0
- data/lib/quantile_estimator/quantile.rb +3 -0
- data/lib/quantile_estimator/test.rb +37 -0
- data/lib/quantile_estimator/version.rb +3 -0
- data/pkg/quantile_estimator-0.0.1.gem +0 -0
- data/quantile_estimator.gemspec +29 -0
- data/test/test_quantile_estimator.rb +85 -0
- metadata +120 -0
data/doc/Item.html
ADDED
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: Item
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
+
relpath = '';
|
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
25
|
+
|
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<div id="header">
|
|
32
|
+
<div id="menu">
|
|
33
|
+
|
|
34
|
+
<a href="_index.html">Index (I)</a> »
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<span class="title">Item</span>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div id="search">
|
|
44
|
+
|
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
|
46
|
+
href="class_list.html">
|
|
47
|
+
Class List
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
|
51
|
+
href="method_list.html">
|
|
52
|
+
Method List
|
|
53
|
+
</a>
|
|
54
|
+
|
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
|
56
|
+
href="file_list.html">
|
|
57
|
+
File List
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="clear"></div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<iframe id="search_frame"></iframe>
|
|
65
|
+
|
|
66
|
+
<div id="content"><h1>Class: Item
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
<dt class="r1">Inherits:</dt>
|
|
75
|
+
<dd class="r1">
|
|
76
|
+
<span class="inheritName">Object</span>
|
|
77
|
+
|
|
78
|
+
<ul class="fullTree">
|
|
79
|
+
<li>Object</li>
|
|
80
|
+
|
|
81
|
+
<li class="next">Item</li>
|
|
82
|
+
|
|
83
|
+
</ul>
|
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
85
|
+
|
|
86
|
+
</dd>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
|
97
|
+
<dd class="r2 last">lib/quantile_estimator/item.rb</dd>
|
|
98
|
+
|
|
99
|
+
</dl>
|
|
100
|
+
<div class="clear"></div>
|
|
101
|
+
|
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
|
103
|
+
<div class="discussion">
|
|
104
|
+
|
|
105
|
+
<p>n = items k = asymptote S = data structure containing multiple tuples s =
|
|
106
|
+
samples of items from the data stream</p>
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="tags">
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
119
|
+
<ul class="summary">
|
|
120
|
+
|
|
121
|
+
<li class="public ">
|
|
122
|
+
<span class="summary_signature">
|
|
123
|
+
|
|
124
|
+
<a href="#delta-instance_method" title="#delta (instance method)">- (Object) <strong>delta</strong> </a>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
</span>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<span class="summary_desc"><div class='inline'>
|
|
142
|
+
<p>Returns the value of attribute delta.</p>
|
|
143
|
+
</div></span>
|
|
144
|
+
|
|
145
|
+
</li>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<li class="public ">
|
|
149
|
+
<span class="summary_signature">
|
|
150
|
+
|
|
151
|
+
<a href="#g-instance_method" title="#g (instance method)">- (Object) <strong>g</strong> </a>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
</span>
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
<span class="summary_desc"><div class='inline'>
|
|
169
|
+
<p>Returns the value of attribute g.</p>
|
|
170
|
+
</div></span>
|
|
171
|
+
|
|
172
|
+
</li>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<li class="public ">
|
|
176
|
+
<span class="summary_signature">
|
|
177
|
+
|
|
178
|
+
<a href="#rank-instance_method" title="#rank (instance method)">- (Object) <strong>rank</strong> </a>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
</span>
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
<span class="summary_desc"><div class='inline'>
|
|
196
|
+
<p>Returns the value of attribute rank.</p>
|
|
197
|
+
</div></span>
|
|
198
|
+
|
|
199
|
+
</li>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
<li class="public ">
|
|
203
|
+
<span class="summary_signature">
|
|
204
|
+
|
|
205
|
+
<a href="#value-instance_method" title="#value (instance method)">- (Object) <strong>value</strong> </a>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
</span>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
<span class="summary_desc"><div class='inline'>
|
|
223
|
+
<p>Returns the value of attribute value.</p>
|
|
224
|
+
</div></span>
|
|
225
|
+
|
|
226
|
+
</li>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
</ul>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
<h2>
|
|
236
|
+
Instance Method Summary
|
|
237
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
238
|
+
</h2>
|
|
239
|
+
|
|
240
|
+
<ul class="summary">
|
|
241
|
+
|
|
242
|
+
<li class="public ">
|
|
243
|
+
<span class="summary_signature">
|
|
244
|
+
|
|
245
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Item) <strong>initialize</strong>(value, g, delta, rank = nil) </a>
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
</span>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
<span class="note title constructor">constructor</span>
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
<span class="summary_desc"><div class='inline'>
|
|
262
|
+
<p>A new instance of Item.</p>
|
|
263
|
+
</div></span>
|
|
264
|
+
|
|
265
|
+
</li>
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
<li class="public ">
|
|
269
|
+
<span class="summary_signature">
|
|
270
|
+
|
|
271
|
+
<a href="#merge-instance_method" title="#merge (instance method)">- (Object) <strong>merge</strong>(item) </a>
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
</span>
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
286
|
+
|
|
287
|
+
</li>
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
<li class="public ">
|
|
291
|
+
<span class="summary_signature">
|
|
292
|
+
|
|
293
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
</span>
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
308
|
+
|
|
309
|
+
</li>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
</ul>
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
<div id="constructor_details" class="method_details_list">
|
|
316
|
+
<h2>Constructor Details</h2>
|
|
317
|
+
|
|
318
|
+
<div class="method_details first">
|
|
319
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
320
|
+
|
|
321
|
+
- (<tt><span class='object_link'><a href="" title="Item (class)">Item</a></span></tt>) <strong>initialize</strong>(value, g, delta, rank = nil)
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
</h3><div class="docstring">
|
|
328
|
+
<div class="discussion">
|
|
329
|
+
|
|
330
|
+
<p>Returns a new instance of Item</p>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
</div>
|
|
334
|
+
</div>
|
|
335
|
+
<div class="tags">
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
</div><table class="source_code">
|
|
339
|
+
<tr>
|
|
340
|
+
<td>
|
|
341
|
+
<pre class="lines">
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
7
|
|
345
|
+
8
|
|
346
|
+
9
|
|
347
|
+
10
|
|
348
|
+
11
|
|
349
|
+
12</pre>
|
|
350
|
+
</td>
|
|
351
|
+
<td>
|
|
352
|
+
<pre class="code"><span class="info file"># File 'lib/quantile_estimator/item.rb', line 7</span>
|
|
353
|
+
|
|
354
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_g'>g</span><span class='comma'>,</span> <span class='id identifier rubyid_delta'>delta</span><span class='comma'>,</span> <span class='id identifier rubyid_rank'>rank</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
|
355
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
|
356
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_g'>g</span> <span class='op'>=</span> <span class='id identifier rubyid_g'>g</span>
|
|
357
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_delta'>delta</span> <span class='op'>=</span> <span class='id identifier rubyid_delta'>delta</span>
|
|
358
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_rank'>rank</span> <span class='op'>=</span> <span class='id identifier rubyid_rank'>rank</span>
|
|
359
|
+
<span class='kw'>end</span></pre>
|
|
360
|
+
</td>
|
|
361
|
+
</tr>
|
|
362
|
+
</table>
|
|
363
|
+
</div>
|
|
364
|
+
|
|
365
|
+
</div>
|
|
366
|
+
|
|
367
|
+
<div id="instance_attr_details" class="attr_details">
|
|
368
|
+
<h2>Instance Attribute Details</h2>
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
<span id="delta=-instance_method"></span>
|
|
372
|
+
<div class="method_details first">
|
|
373
|
+
<h3 class="signature first" id="delta-instance_method">
|
|
374
|
+
|
|
375
|
+
- (<tt>Object</tt>) <strong>delta</strong>
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
</h3><div class="docstring">
|
|
382
|
+
<div class="discussion">
|
|
383
|
+
|
|
384
|
+
<p>Returns the value of attribute delta</p>
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
</div>
|
|
388
|
+
</div>
|
|
389
|
+
<div class="tags">
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
</div><table class="source_code">
|
|
393
|
+
<tr>
|
|
394
|
+
<td>
|
|
395
|
+
<pre class="lines">
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
6
|
|
399
|
+
7
|
|
400
|
+
8</pre>
|
|
401
|
+
</td>
|
|
402
|
+
<td>
|
|
403
|
+
<pre class="code"><span class="info file"># File 'lib/quantile_estimator/item.rb', line 6</span>
|
|
404
|
+
|
|
405
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_delta'>delta</span>
|
|
406
|
+
<span class='ivar'>@delta</span>
|
|
407
|
+
<span class='kw'>end</span></pre>
|
|
408
|
+
</td>
|
|
409
|
+
</tr>
|
|
410
|
+
</table>
|
|
411
|
+
</div>
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
<span id="g=-instance_method"></span>
|
|
415
|
+
<div class="method_details ">
|
|
416
|
+
<h3 class="signature " id="g-instance_method">
|
|
417
|
+
|
|
418
|
+
- (<tt>Object</tt>) <strong>g</strong>
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
</h3><div class="docstring">
|
|
425
|
+
<div class="discussion">
|
|
426
|
+
|
|
427
|
+
<p>Returns the value of attribute g</p>
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
</div>
|
|
431
|
+
</div>
|
|
432
|
+
<div class="tags">
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
</div><table class="source_code">
|
|
436
|
+
<tr>
|
|
437
|
+
<td>
|
|
438
|
+
<pre class="lines">
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
6
|
|
442
|
+
7
|
|
443
|
+
8</pre>
|
|
444
|
+
</td>
|
|
445
|
+
<td>
|
|
446
|
+
<pre class="code"><span class="info file"># File 'lib/quantile_estimator/item.rb', line 6</span>
|
|
447
|
+
|
|
448
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_g'>g</span>
|
|
449
|
+
<span class='ivar'>@g</span>
|
|
450
|
+
<span class='kw'>end</span></pre>
|
|
451
|
+
</td>
|
|
452
|
+
</tr>
|
|
453
|
+
</table>
|
|
454
|
+
</div>
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
<span id="rank=-instance_method"></span>
|
|
458
|
+
<div class="method_details ">
|
|
459
|
+
<h3 class="signature " id="rank-instance_method">
|
|
460
|
+
|
|
461
|
+
- (<tt>Object</tt>) <strong>rank</strong>
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
</h3><div class="docstring">
|
|
468
|
+
<div class="discussion">
|
|
469
|
+
|
|
470
|
+
<p>Returns the value of attribute rank</p>
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
</div>
|
|
474
|
+
</div>
|
|
475
|
+
<div class="tags">
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
</div><table class="source_code">
|
|
479
|
+
<tr>
|
|
480
|
+
<td>
|
|
481
|
+
<pre class="lines">
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
6
|
|
485
|
+
7
|
|
486
|
+
8</pre>
|
|
487
|
+
</td>
|
|
488
|
+
<td>
|
|
489
|
+
<pre class="code"><span class="info file"># File 'lib/quantile_estimator/item.rb', line 6</span>
|
|
490
|
+
|
|
491
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rank'>rank</span>
|
|
492
|
+
<span class='ivar'>@rank</span>
|
|
493
|
+
<span class='kw'>end</span></pre>
|
|
494
|
+
</td>
|
|
495
|
+
</tr>
|
|
496
|
+
</table>
|
|
497
|
+
</div>
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
<span id="value=-instance_method"></span>
|
|
501
|
+
<div class="method_details ">
|
|
502
|
+
<h3 class="signature " id="value-instance_method">
|
|
503
|
+
|
|
504
|
+
- (<tt>Object</tt>) <strong>value</strong>
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
</h3><div class="docstring">
|
|
511
|
+
<div class="discussion">
|
|
512
|
+
|
|
513
|
+
<p>Returns the value of attribute value</p>
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
</div>
|
|
517
|
+
</div>
|
|
518
|
+
<div class="tags">
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
</div><table class="source_code">
|
|
522
|
+
<tr>
|
|
523
|
+
<td>
|
|
524
|
+
<pre class="lines">
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
6
|
|
528
|
+
7
|
|
529
|
+
8</pre>
|
|
530
|
+
</td>
|
|
531
|
+
<td>
|
|
532
|
+
<pre class="code"><span class="info file"># File 'lib/quantile_estimator/item.rb', line 6</span>
|
|
533
|
+
|
|
534
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
|
|
535
|
+
<span class='ivar'>@value</span>
|
|
536
|
+
<span class='kw'>end</span></pre>
|
|
537
|
+
</td>
|
|
538
|
+
</tr>
|
|
539
|
+
</table>
|
|
540
|
+
</div>
|
|
541
|
+
|
|
542
|
+
</div>
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
<div id="instance_method_details" class="method_details_list">
|
|
546
|
+
<h2>Instance Method Details</h2>
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
<div class="method_details first">
|
|
550
|
+
<h3 class="signature first" id="merge-instance_method">
|
|
551
|
+
|
|
552
|
+
- (<tt>Object</tt>) <strong>merge</strong>(item)
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
</h3><table class="source_code">
|
|
559
|
+
<tr>
|
|
560
|
+
<td>
|
|
561
|
+
<pre class="lines">
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
14
|
|
565
|
+
15
|
|
566
|
+
16</pre>
|
|
567
|
+
</td>
|
|
568
|
+
<td>
|
|
569
|
+
<pre class="code"><span class="info file"># File 'lib/quantile_estimator/item.rb', line 14</span>
|
|
570
|
+
|
|
571
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
|
|
572
|
+
<span class='const'>Item</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_g'>g</span> <span class='op'>+</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_g'>g</span><span class='comma'>,</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_delta'>delta</span><span class='comma'>,</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_rank'>rank</span><span class='rparen'>)</span>
|
|
573
|
+
<span class='kw'>end</span></pre>
|
|
574
|
+
</td>
|
|
575
|
+
</tr>
|
|
576
|
+
</table>
|
|
577
|
+
</div>
|
|
578
|
+
|
|
579
|
+
<div class="method_details ">
|
|
580
|
+
<h3 class="signature " id="to_s-instance_method">
|
|
581
|
+
|
|
582
|
+
- (<tt>Object</tt>) <strong>to_s</strong>
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
</h3><table class="source_code">
|
|
589
|
+
<tr>
|
|
590
|
+
<td>
|
|
591
|
+
<pre class="lines">
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
18
|
|
595
|
+
19
|
|
596
|
+
20</pre>
|
|
597
|
+
</td>
|
|
598
|
+
<td>
|
|
599
|
+
<pre class="code"><span class="info file"># File 'lib/quantile_estimator/item.rb', line 18</span>
|
|
600
|
+
|
|
601
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
|
602
|
+
<span class='lbracket'>[</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_g'>g</span><span class='comma'>,</span> <span class='id identifier rubyid_delta'>delta</span><span class='comma'>,</span> <span class='id identifier rubyid_rank'>rank</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span>
|
|
603
|
+
<span class='kw'>end</span></pre>
|
|
604
|
+
</td>
|
|
605
|
+
</tr>
|
|
606
|
+
</table>
|
|
607
|
+
</div>
|
|
608
|
+
|
|
609
|
+
</div>
|
|
610
|
+
|
|
611
|
+
</div>
|
|
612
|
+
|
|
613
|
+
<div id="footer">
|
|
614
|
+
Generated on Fri Nov 15 15:39:43 2013 by
|
|
615
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
616
|
+
0.8.7.3 (ruby-2.0.0).
|
|
617
|
+
</div>
|
|
618
|
+
|
|
619
|
+
</body>
|
|
620
|
+
</html>
|