mdarray 0.5.5.2-java → 0.5.6-java
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 +4 -4
- data/config.rb +29 -95
- data/doc/BinaryOperator.html +20 -21
- data/doc/BitwiseOperators.html +18 -8
- data/doc/BitwiseOperators/BinaryAnd.html +189 -0
- data/doc/BitwiseOperators/BinaryLeftShift.html +189 -0
- data/doc/BitwiseOperators/BinaryOnesComplement.html +189 -0
- data/doc/BitwiseOperators/BinaryOr.html +189 -0
- data/doc/BitwiseOperators/BinaryRightShift.html +189 -0
- data/doc/BitwiseOperators/BinaryXor.html +189 -0
- data/doc/BooleanFunctions.html +18 -8
- data/doc/BooleanFunctions/And.html +189 -0
- data/doc/BooleanFunctions/Not.html +189 -0
- data/doc/BooleanFunctions/Or.html +189 -0
- data/doc/BooleanMDArray.html +10 -10
- data/doc/ByteMDArray.html +73 -14
- data/doc/CernDoubleFunctions.html +208 -0
- data/doc/CernFloatFunctions.html +208 -0
- data/doc/CernFunctions.html +828 -0
- data/doc/CernIntFunctions.html +208 -0
- data/doc/CernLongFunctions.html +208 -0
- data/doc/CharMDArray.html +181 -0
- data/doc/Colt.html +18 -20
- data/doc/ComparisonOperators.html +18 -8
- data/doc/ComparisonOperators/Eq.html +189 -0
- data/doc/ComparisonOperators/Ge.html +189 -0
- data/doc/ComparisonOperators/Gt.html +189 -0
- data/doc/ComparisonOperators/Le.html +189 -0
- data/doc/ComparisonOperators/Lt.html +189 -0
- data/doc/Const.html +107 -47
- data/doc/Csv.html +325 -113
- data/doc/Csv/Dimension.html +771 -0
- data/doc/Csv/Dimensions.html +654 -0
- data/doc/DDescriptive.html +573 -625
- data/doc/DoubleMDArray.html +40 -172
- data/doc/DoubleStatList.html +19 -20
- data/doc/FastBinaryOperator.html +166 -148
- data/doc/FastUnaryOperator.html +104 -109
- data/doc/FloatMDArray.html +55 -16
- data/doc/FunctionCreation.html +53 -273
- data/doc/FunctionMap.html +381 -93
- data/doc/GenericFunctions.html +18 -8
- data/doc/GenericFunctions/Null.html +187 -0
- data/doc/IntMDArray.html +77 -16
- data/doc/Java/CernJetMathTdouble/DoubleFunctions.html +120 -0
- data/doc/Java/CernJetMathTfloat/FloatFunctions.html +120 -0
- data/doc/Java/CernJetMathTint/IntFunctions.html +120 -0
- data/doc/Java/CernJetMathTlong/LongFunctions.html +120 -0
- data/doc/LazyBinaryOperator.html +714 -0
- data/doc/LazyMDArray.html +990 -0
- data/doc/LazyMDArray/BinaryComp.html +282 -0
- data/doc/LazyMDArray/UnaryComp.html +280 -0
- data/doc/LazyUnaryOperator.html +537 -0
- data/doc/LongMDArray.html +59 -15
- data/doc/MDArray.html +3223 -2181
- data/doc/MDArray/Counter.html +321 -1233
- data/doc/MDArray/IteratorFast.html +177 -116
- data/doc/MDArray/IteratorFastBoolean.html +37 -41
- data/doc/MDArray/IteratorFastByte.html +46 -39
- data/doc/MDArray/IteratorFastChar.html +37 -41
- data/doc/MDArray/IteratorFastDouble.html +37 -41
- data/doc/MDArray/IteratorFastFloat.html +37 -41
- data/doc/MDArray/IteratorFastInt.html +37 -41
- data/doc/MDArray/IteratorFastLong.html +37 -41
- data/doc/MDArray/IteratorFastShort.html +37 -41
- data/doc/MDArray/Section.html +561 -0
- data/doc/Nashorn.html +1407 -0
- data/doc/NetCDF.html +749 -0
- data/doc/NetCDF/Attribute.html +875 -0
- data/doc/NetCDF/AttributeWriter.html +286 -0
- data/doc/NetCDF/CDMNode.html +460 -0
- data/doc/NetCDF/Dimension.html +559 -0
- data/doc/NetCDF/DimensionWriter.html +642 -0
- data/doc/NetCDF/File.html +1593 -0
- data/doc/NetCDF/FileParent.html +674 -0
- data/doc/NetCDF/FileWriter.html +2875 -0
- data/doc/NetCDF/Group.html +685 -0
- data/doc/NetCDF/GroupWriter.html +851 -0
- data/doc/NetCDF/TimeVariable.html +646 -0
- data/doc/NetCDF/Variable.html +2994 -0
- data/doc/NetCDF/VariableWriter.html +420 -0
- data/doc/NonNumericalMDArray.html +11 -11
- data/doc/NumericFunctions.html +38 -30
- data/doc/NumericFunctions/Abs.html +189 -0
- data/doc/NumericFunctions/Add.html +189 -0
- data/doc/NumericFunctions/Ceil.html +189 -0
- data/doc/NumericFunctions/Cube.html +189 -0
- data/doc/NumericFunctions/Div.html +189 -0
- data/doc/NumericFunctions/Floor.html +189 -0
- data/doc/NumericFunctions/Fourth.html +189 -0
- data/doc/NumericFunctions/IsZero.html +189 -0
- data/doc/NumericFunctions/Max.html +189 -0
- data/doc/NumericFunctions/Min.html +189 -0
- data/doc/NumericFunctions/Mul.html +189 -0
- data/doc/NumericFunctions/Power.html +189 -0
- data/doc/NumericFunctions/Square.html +189 -0
- data/doc/NumericFunctions/Sub.html +189 -0
- data/doc/NumericFunctions/Truncate.html +189 -0
- data/doc/NumericalMDArray.html +14 -15
- data/doc/Operator.html +318 -109
- data/doc/Proc.html +120 -129
- data/doc/RubyBinaryOperator.html +66 -70
- data/doc/RubyFunctions.html +572 -27
- data/doc/RubyMath.html +18 -8
- data/doc/RubyMath/Acos.html +189 -0
- data/doc/RubyMath/Acosh.html +189 -0
- data/doc/RubyMath/Asin.html +189 -0
- data/doc/RubyMath/Asinh.html +189 -0
- data/doc/RubyMath/Atan.html +189 -0
- data/doc/RubyMath/Atan2.html +189 -0
- data/doc/RubyMath/Atanh.html +189 -0
- data/doc/RubyMath/Cbrt.html +189 -0
- data/doc/RubyMath/Cos.html +189 -0
- data/doc/RubyMath/Cosh.html +189 -0
- data/doc/RubyMath/Erf.html +189 -0
- data/doc/RubyMath/Erfc.html +189 -0
- data/doc/RubyMath/Exp.html +189 -0
- data/doc/RubyMath/Gamma.html +189 -0
- data/doc/RubyMath/Hypot.html +189 -0
- data/doc/RubyMath/Ldexp.html +189 -0
- data/doc/RubyMath/Log.html +189 -0
- data/doc/RubyMath/Log10.html +189 -0
- data/doc/RubyMath/Log2.html +189 -0
- data/doc/RubyMath/Neg.html +189 -0
- data/doc/RubyMath/Sin.html +189 -0
- data/doc/RubyMath/Sinh.html +189 -0
- data/doc/RubyMath/Sqrt.html +189 -0
- data/doc/RubyMath/Tan.html +189 -0
- data/doc/RubyMath/Tanh.html +189 -0
- data/doc/RubyStats.html +8 -8
- data/doc/RubyUnaryOperator.html +61 -65
- data/doc/ShortMDArray.html +69 -14
- data/doc/Sol.html +700 -0
- data/doc/Sol/BarChart.html +181 -0
- data/doc/Sol/BaseChart.html +800 -0
- data/doc/Sol/Bootstrap.html +1137 -0
- data/doc/Sol/Bridge.html +586 -0
- data/doc/Sol/Chart.html +1162 -0
- data/doc/Sol/CoordinateChart.html +679 -0
- data/doc/Sol/Dashboard.html +2094 -0
- data/doc/Sol/Dashboard/DCFX.html +786 -0
- data/doc/Sol/Dashboard/MyHandle.html +338 -0
- data/doc/Sol/Dashboard/MyService.html +202 -0
- data/doc/Sol/Dashboard/MyTask.html +291 -0
- data/doc/Sol/Interval.html +1213 -0
- data/doc/Sol/LineChart.html +346 -0
- data/doc/Sol/LinearScale.html +334 -0
- data/doc/Sol/Margins.html +219 -0
- data/doc/Sol/OrdinalScale.html +263 -0
- data/doc/Sol/Scale.html +462 -0
- data/doc/Sol/Stack.html +199 -0
- data/doc/Sol/TimeScale.html +397 -0
- data/doc/StatList.html +110 -125
- data/doc/StringMDArray.html +10 -10
- data/doc/StructureMDArray.html +10 -10
- data/doc/UnaryOperator.html +20 -21
- data/doc/UserFunction.html +51 -49
- data/doc/_index.html +881 -106
- data/doc/class_list.html +8 -3
- data/doc/css/style.css +2 -1
- data/doc/file.README.html +455 -104
- data/doc/file_list.html +7 -2
- data/doc/frames.html +5 -7
- data/doc/index.html +455 -104
- data/doc/js/app.js +7 -2
- data/doc/js/full_list.js +11 -3
- data/doc/method_list.html +3170 -1233
- data/doc/top-level-namespace.html +31 -8
- data/lib/colt/matrix/algebra.rb +5 -5
- data/lib/mdarray.rb +6 -3
- data/lib/mdarray/csv.rb +25 -5
- data/lib/mdarray/fast_operators.rb +1 -1
- data/lib/mdarray/function_creation.rb +3 -1
- data/lib/mdarray/hierarchy.rb +2 -0
- data/lib/mdarray/operators.rb +1 -1
- data/lib/mdarray/ruby_functions.rb +8 -4
- data/lib/mdarray/ruby_math.rb +0 -28
- data/test/colt/matrix/test_matrix2d_floatingalgebra.rb +31 -7
- data/test/complete.rb +4 -4
- data/test/mdarray/PETR4_2014.csv +249 -0
- data/test/mdarray/VALE_2014.csv +253 -0
- data/test/mdarray/VALE_PETR4.csv +501 -0
- data/test/mdarray/arithmetic_casting.rb +1 -0
- data/test/mdarray/test_access.rb +1 -0
- data/test/mdarray/test_boolean.rb +1 -0
- data/test/mdarray/test_comparison.rb +1 -0
- data/test/mdarray/test_complete.rb +2 -5
- data/test/mdarray/test_counter.rb +1 -0
- data/test/mdarray/test_creation.rb +1 -0
- data/test/mdarray/test_csv.rb +51 -0
- data/test/mdarray/test_error.rb +1 -0
- data/test/mdarray/test_non_numeric.rb +1 -1
- data/test/mdarray/test_operator.rb +31 -14
- data/test/mdarray/test_performance.rb +2 -1
- data/test/mdarray/test_printing.rb +1 -0
- data/test/mdarray/test_sections.rb +1 -0
- data/test/mdarray/test_shape.rb +1 -0
- data/test/mdarray/test_trigonometry.rb +1 -0
- data/test/mdarray/test_views.rb +1 -0
- data/vendor/mdarray.jar +0 -0
- data/vendor/{netcdfAll-4.5_0.jar → netcdfAll-4.6.jar} +0 -0
- data/vendor/slf4j-jdk14-1.7.12.jar +0 -0
- data/version.rb +1 -1
- metadata +247 -139
- data/lib/env.rb +0 -12
- data/lib/mdarray/lazy_mdarray.rb +0 -315
- data/lib/mdarray/lazy_operators.rb +0 -174
- data/test/env.rb +0 -8
- data/test/mdarray/test_lazy.rb +0 -306
data/doc/StatList.html
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: StatList
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
14
|
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
16
|
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
|
19
19
|
relpath = '';
|
|
20
|
-
framesUrl = "frames.html#!"
|
|
20
|
+
framesUrl = "frames.html#!StatList.html";
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
|
|
@@ -169,9 +169,9 @@
|
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
<span class="summary_desc"><div class='inline'
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
<span class="summary_desc"><div class='inline'>
|
|
173
|
+
<p>------------------------------------------------------------------------------------
|
|
174
|
+
Appends the specified element to the end of this list.</p>
|
|
175
175
|
</div></span>
|
|
176
176
|
|
|
177
177
|
</li>
|
|
@@ -194,9 +194,9 @@
|
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
|
|
197
|
-
<span class="summary_desc"><div class='inline'
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
<span class="summary_desc"><div class='inline'>
|
|
198
|
+
<p>------------------------------------------------------------------------------------
|
|
199
|
+
Inserts the specified element before the specified position into the
|
|
200
200
|
receiver.</p>
|
|
201
201
|
</div></span>
|
|
202
202
|
|
|
@@ -206,7 +206,7 @@ receiver.</p>
|
|
|
206
206
|
<li class="public ">
|
|
207
207
|
<span class="summary_signature">
|
|
208
208
|
|
|
209
|
-
<a href="#binary_search-instance_method" title="#binary_search (instance method)">- (Object) <strong>binary_search</strong>(key, from = 0, to = @array_list.size()-1) </a>
|
|
209
|
+
<a href="#binary_search-instance_method" title="#binary_search (instance method)">- (Object) <strong>binary_search</strong>(key, from = 0, to = @array_list.size() - 1) </a>
|
|
210
210
|
|
|
211
211
|
|
|
212
212
|
|
|
@@ -221,7 +221,7 @@ receiver.</p>
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
<span class="summary_desc"><div class='inline'>
|
|
224
|
-
<p
|
|
224
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
225
225
|
</div></span>
|
|
226
226
|
|
|
227
227
|
</li>
|
|
@@ -245,7 +245,7 @@ receiver.</p>
|
|
|
245
245
|
|
|
246
246
|
|
|
247
247
|
<span class="summary_desc"><div class='inline'>
|
|
248
|
-
<p
|
|
248
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
249
249
|
</div></span>
|
|
250
250
|
|
|
251
251
|
</li>
|
|
@@ -268,9 +268,9 @@ receiver.</p>
|
|
|
268
268
|
|
|
269
269
|
|
|
270
270
|
|
|
271
|
-
<span class="summary_desc"><div class='inline'
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
<span class="summary_desc"><div class='inline'>
|
|
272
|
+
<p>------------------------------------------------------------------------------------
|
|
273
|
+
Returns the elements currently stored.</p>
|
|
274
274
|
</div></span>
|
|
275
275
|
|
|
276
276
|
</li>
|
|
@@ -295,9 +295,9 @@ receiver.</p>
|
|
|
295
295
|
|
|
296
296
|
|
|
297
297
|
|
|
298
|
-
<span class="summary_desc"><div class='inline'
|
|
299
|
-
|
|
300
|
-
|
|
298
|
+
<span class="summary_desc"><div class='inline'>
|
|
299
|
+
<p>------------------------------------------------------------------------------------
|
|
300
|
+
Returns the element at the specified position in the receiver.</p>
|
|
301
301
|
</div></span>
|
|
302
302
|
|
|
303
303
|
</li>
|
|
@@ -306,7 +306,7 @@ receiver.</p>
|
|
|
306
306
|
<li class="public ">
|
|
307
307
|
<span class="summary_signature">
|
|
308
308
|
|
|
309
|
-
<a href="#index_of-instance_method" title="#index_of (instance method)">- (Object) <strong>index_of</strong>(element, from = 0, to = @array_list.size()-1) </a>
|
|
309
|
+
<a href="#index_of-instance_method" title="#index_of (instance method)">- (Object) <strong>index_of</strong>(element, from = 0, to = @array_list.size() - 1) </a>
|
|
310
310
|
|
|
311
311
|
|
|
312
312
|
|
|
@@ -321,7 +321,7 @@ receiver.</p>
|
|
|
321
321
|
|
|
322
322
|
|
|
323
323
|
<span class="summary_desc"><div class='inline'>
|
|
324
|
-
<p
|
|
324
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
325
325
|
</div></span>
|
|
326
326
|
|
|
327
327
|
</li>
|
|
@@ -330,7 +330,7 @@ receiver.</p>
|
|
|
330
330
|
<li class="public ">
|
|
331
331
|
<span class="summary_signature">
|
|
332
332
|
|
|
333
|
-
<a href="#last_index_of-instance_method" title="#last_index_of (instance method)">- (Object) <strong>last_index_of</strong>(element, from = 0, to = @array_list.size()-1) </a>
|
|
333
|
+
<a href="#last_index_of-instance_method" title="#last_index_of (instance method)">- (Object) <strong>last_index_of</strong>(element, from = 0, to = @array_list.size() - 1) </a>
|
|
334
334
|
|
|
335
335
|
|
|
336
336
|
|
|
@@ -345,7 +345,7 @@ receiver.</p>
|
|
|
345
345
|
|
|
346
346
|
|
|
347
347
|
<span class="summary_desc"><div class='inline'>
|
|
348
|
-
<p
|
|
348
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
349
349
|
</div></span>
|
|
350
350
|
|
|
351
351
|
</li>
|
|
@@ -369,7 +369,7 @@ receiver.</p>
|
|
|
369
369
|
|
|
370
370
|
|
|
371
371
|
<span class="summary_desc"><div class='inline'>
|
|
372
|
-
<p
|
|
372
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
373
373
|
</div></span>
|
|
374
374
|
|
|
375
375
|
</li>
|
|
@@ -393,7 +393,7 @@ receiver.</p>
|
|
|
393
393
|
|
|
394
394
|
|
|
395
395
|
<span class="summary_desc"><div class='inline'>
|
|
396
|
-
<p
|
|
396
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
397
397
|
</div></span>
|
|
398
398
|
|
|
399
399
|
</li>
|
|
@@ -419,7 +419,7 @@ receiver.</p>
|
|
|
419
419
|
|
|
420
420
|
|
|
421
421
|
<span class="summary_desc"><div class='inline'>
|
|
422
|
-
<p
|
|
422
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
423
423
|
</div></span>
|
|
424
424
|
|
|
425
425
|
</li>
|
|
@@ -428,7 +428,7 @@ receiver.</p>
|
|
|
428
428
|
<li class="public ">
|
|
429
429
|
<span class="summary_signature">
|
|
430
430
|
|
|
431
|
-
<a href="#shuffle-instance_method" title="#shuffle (instance method)">- (Object) <strong>shuffle</strong>(from = 0, to = @array_list.size()-1) </a>
|
|
431
|
+
<a href="#shuffle-instance_method" title="#shuffle (instance method)">- (Object) <strong>shuffle</strong>(from = 0, to = @array_list.size() - 1) </a>
|
|
432
432
|
|
|
433
433
|
|
|
434
434
|
|
|
@@ -443,7 +443,7 @@ receiver.</p>
|
|
|
443
443
|
|
|
444
444
|
|
|
445
445
|
<span class="summary_desc"><div class='inline'>
|
|
446
|
-
<p
|
|
446
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
447
447
|
</div></span>
|
|
448
448
|
|
|
449
449
|
</li>
|
|
@@ -467,7 +467,7 @@ receiver.</p>
|
|
|
467
467
|
|
|
468
468
|
|
|
469
469
|
<span class="summary_desc"><div class='inline'>
|
|
470
|
-
<p
|
|
470
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
471
471
|
</div></span>
|
|
472
472
|
|
|
473
473
|
</li>
|
|
@@ -491,7 +491,7 @@ receiver.</p>
|
|
|
491
491
|
|
|
492
492
|
|
|
493
493
|
<span class="summary_desc"><div class='inline'>
|
|
494
|
-
<p
|
|
494
|
+
<p>------------------------------------------------------------------------------------.</p>
|
|
495
495
|
</div></span>
|
|
496
496
|
|
|
497
497
|
</li>
|
|
@@ -539,10 +539,9 @@ receiver.</p>
|
|
|
539
539
|
<td>
|
|
540
540
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 31</span>
|
|
541
541
|
|
|
542
|
-
<span class='
|
|
543
|
-
<span class='
|
|
544
|
-
<span class='
|
|
545
|
-
</pre>
|
|
542
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_array_list'>array_list</span>
|
|
543
|
+
<span class='ivar'>@array_list</span>
|
|
544
|
+
<span class='kw'>end</span></pre>
|
|
546
545
|
</td>
|
|
547
546
|
</tr>
|
|
548
547
|
</table>
|
|
@@ -566,10 +565,10 @@ receiver.</p>
|
|
|
566
565
|
|
|
567
566
|
</h3><div class="docstring">
|
|
568
567
|
<div class="discussion">
|
|
569
|
-
<hr
|
|
568
|
+
<hr>
|
|
570
569
|
|
|
571
570
|
<p>Appends the specified element to the end of this list.</p>
|
|
572
|
-
<hr
|
|
571
|
+
<hr>
|
|
573
572
|
|
|
574
573
|
|
|
575
574
|
</div>
|
|
@@ -590,10 +589,9 @@ receiver.</p>
|
|
|
590
589
|
<td>
|
|
591
590
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 37</span>
|
|
592
591
|
|
|
593
|
-
<span class='
|
|
594
|
-
<span class='
|
|
595
|
-
<span class='
|
|
596
|
-
</pre>
|
|
592
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='rparen'>)</span>
|
|
593
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='rparen'>)</span>
|
|
594
|
+
<span class='kw'>end</span></pre>
|
|
597
595
|
</td>
|
|
598
596
|
</tr>
|
|
599
597
|
</table>
|
|
@@ -610,11 +608,11 @@ receiver.</p>
|
|
|
610
608
|
|
|
611
609
|
</h3><div class="docstring">
|
|
612
610
|
<div class="discussion">
|
|
613
|
-
<hr
|
|
611
|
+
<hr>
|
|
614
612
|
|
|
615
613
|
<p>Inserts the specified element before the specified position into the
|
|
616
614
|
receiver.</p>
|
|
617
|
-
<hr
|
|
615
|
+
<hr>
|
|
618
616
|
|
|
619
617
|
|
|
620
618
|
</div>
|
|
@@ -635,10 +633,9 @@ receiver.</p>
|
|
|
635
633
|
<td>
|
|
636
634
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 45</span>
|
|
637
635
|
|
|
638
|
-
<span class='
|
|
639
|
-
<span class='
|
|
640
|
-
<span class='
|
|
641
|
-
</pre>
|
|
636
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_before_insert'>before_insert</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='comma'>,</span> <span class='id identifier rubyid_element'>element</span><span class='rparen'>)</span>
|
|
637
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_beforeInsert'>beforeInsert</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='comma'>,</span> <span class='id identifier rubyid_element'>element</span><span class='rparen'>)</span>
|
|
638
|
+
<span class='kw'>end</span></pre>
|
|
642
639
|
</td>
|
|
643
640
|
</tr>
|
|
644
641
|
</table>
|
|
@@ -647,7 +644,7 @@ receiver.</p>
|
|
|
647
644
|
<div class="method_details ">
|
|
648
645
|
<h3 class="signature " id="binary_search-instance_method">
|
|
649
646
|
|
|
650
|
-
- (<tt>Object</tt>) <strong>binary_search</strong>(key, from = 0, to = @array_list.size()-1)
|
|
647
|
+
- (<tt>Object</tt>) <strong>binary_search</strong>(key, from = 0, to = @array_list.size() - 1)
|
|
651
648
|
|
|
652
649
|
|
|
653
650
|
|
|
@@ -655,8 +652,8 @@ receiver.</p>
|
|
|
655
652
|
|
|
656
653
|
</h3><div class="docstring">
|
|
657
654
|
<div class="discussion">
|
|
658
|
-
<hr
|
|
659
|
-
<hr
|
|
655
|
+
<hr>
|
|
656
|
+
<hr>
|
|
660
657
|
|
|
661
658
|
|
|
662
659
|
</div>
|
|
@@ -677,10 +674,9 @@ receiver.</p>
|
|
|
677
674
|
<td>
|
|
678
675
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 53</span>
|
|
679
676
|
|
|
680
|
-
<span class='
|
|
681
|
-
<span class='
|
|
682
|
-
<span class='
|
|
683
|
-
</pre>
|
|
677
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_binary_search'>binary_search</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_from'>from</span> <span class='op'>=</span> <span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_to'>to</span> <span class='op'>=</span> <span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='int'>1</span><span class='rparen'>)</span>
|
|
678
|
+
<span class='id identifier rubyid_sorted_data'>sorted_data</span><span class='period'>.</span><span class='id identifier rubyid_binarySearchFromTo'>binarySearchFromTo</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_from'>from</span><span class='comma'>,</span> <span class='id identifier rubyid_to'>to</span><span class='rparen'>)</span>
|
|
679
|
+
<span class='kw'>end</span></pre>
|
|
684
680
|
</td>
|
|
685
681
|
</tr>
|
|
686
682
|
</table>
|
|
@@ -697,8 +693,8 @@ receiver.</p>
|
|
|
697
693
|
|
|
698
694
|
</h3><div class="docstring">
|
|
699
695
|
<div class="discussion">
|
|
700
|
-
<hr
|
|
701
|
-
<hr
|
|
696
|
+
<hr>
|
|
697
|
+
<hr>
|
|
702
698
|
|
|
703
699
|
|
|
704
700
|
</div>
|
|
@@ -719,10 +715,9 @@ receiver.</p>
|
|
|
719
715
|
<td>
|
|
720
716
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 61</span>
|
|
721
717
|
|
|
722
|
-
<span class='
|
|
723
|
-
<span class='
|
|
724
|
-
<span class='
|
|
725
|
-
</pre>
|
|
718
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_copy'>copy</span>
|
|
719
|
+
<span class='const'>DoubleStatList</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_copy'>copy</span><span class='rparen'>)</span>
|
|
720
|
+
<span class='kw'>end</span></pre>
|
|
726
721
|
</td>
|
|
727
722
|
</tr>
|
|
728
723
|
</table>
|
|
@@ -739,10 +734,10 @@ receiver.</p>
|
|
|
739
734
|
|
|
740
735
|
</h3><div class="docstring">
|
|
741
736
|
<div class="discussion">
|
|
742
|
-
<hr
|
|
737
|
+
<hr>
|
|
743
738
|
|
|
744
739
|
<p>Returns the elements currently stored. Trims the list to the maximum size.</p>
|
|
745
|
-
<hr
|
|
740
|
+
<hr>
|
|
746
741
|
|
|
747
742
|
|
|
748
743
|
</div>
|
|
@@ -764,11 +759,10 @@ receiver.</p>
|
|
|
764
759
|
<td>
|
|
765
760
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 69</span>
|
|
766
761
|
|
|
767
|
-
<span class='
|
|
768
|
-
<span class='
|
|
769
|
-
<span class='
|
|
770
|
-
<span class='
|
|
771
|
-
</pre>
|
|
762
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_elements'>elements</span>
|
|
763
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_trimToSize'>trimToSize</span>
|
|
764
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_elements'>elements</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span>
|
|
765
|
+
<span class='kw'>end</span></pre>
|
|
772
766
|
</td>
|
|
773
767
|
</tr>
|
|
774
768
|
</table>
|
|
@@ -789,10 +783,10 @@ receiver.</p>
|
|
|
789
783
|
|
|
790
784
|
</h3><div class="docstring">
|
|
791
785
|
<div class="discussion">
|
|
792
|
-
<hr
|
|
786
|
+
<hr>
|
|
793
787
|
|
|
794
788
|
<p>Returns the element at the specified position in the receiver.</p>
|
|
795
|
-
<hr
|
|
789
|
+
<hr>
|
|
796
790
|
|
|
797
791
|
|
|
798
792
|
</div>
|
|
@@ -813,10 +807,9 @@ receiver.</p>
|
|
|
813
807
|
<td>
|
|
814
808
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 78</span>
|
|
815
809
|
|
|
816
|
-
<span class='
|
|
817
|
-
<span class='
|
|
818
|
-
<span class='
|
|
819
|
-
</pre>
|
|
810
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
|
|
811
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
|
|
812
|
+
<span class='kw'>end</span></pre>
|
|
820
813
|
</td>
|
|
821
814
|
</tr>
|
|
822
815
|
</table>
|
|
@@ -825,7 +818,7 @@ receiver.</p>
|
|
|
825
818
|
<div class="method_details ">
|
|
826
819
|
<h3 class="signature " id="index_of-instance_method">
|
|
827
820
|
|
|
828
|
-
- (<tt>Object</tt>) <strong>index_of</strong>(element, from = 0, to = @array_list.size()-1)
|
|
821
|
+
- (<tt>Object</tt>) <strong>index_of</strong>(element, from = 0, to = @array_list.size() - 1)
|
|
829
822
|
|
|
830
823
|
|
|
831
824
|
|
|
@@ -833,8 +826,8 @@ receiver.</p>
|
|
|
833
826
|
|
|
834
827
|
</h3><div class="docstring">
|
|
835
828
|
<div class="discussion">
|
|
836
|
-
<hr
|
|
837
|
-
<hr
|
|
829
|
+
<hr>
|
|
830
|
+
<hr>
|
|
838
831
|
|
|
839
832
|
|
|
840
833
|
</div>
|
|
@@ -855,10 +848,9 @@ receiver.</p>
|
|
|
855
848
|
<td>
|
|
856
849
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 88</span>
|
|
857
850
|
|
|
858
|
-
<span class='
|
|
859
|
-
<span class='
|
|
860
|
-
<span class='
|
|
861
|
-
</pre>
|
|
851
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_index_of'>index_of</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='comma'>,</span> <span class='id identifier rubyid_from'>from</span> <span class='op'>=</span> <span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_to'>to</span> <span class='op'>=</span> <span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='int'>1</span><span class='rparen'>)</span>
|
|
852
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_indexOfFromTo'>indexOfFromTo</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='comma'>,</span> <span class='id identifier rubyid_from'>from</span><span class='comma'>,</span> <span class='id identifier rubyid_to'>to</span><span class='rparen'>)</span>
|
|
853
|
+
<span class='kw'>end</span></pre>
|
|
862
854
|
</td>
|
|
863
855
|
</tr>
|
|
864
856
|
</table>
|
|
@@ -867,7 +859,7 @@ receiver.</p>
|
|
|
867
859
|
<div class="method_details ">
|
|
868
860
|
<h3 class="signature " id="last_index_of-instance_method">
|
|
869
861
|
|
|
870
|
-
- (<tt>Object</tt>) <strong>last_index_of</strong>(element, from = 0, to = @array_list.size()-1)
|
|
862
|
+
- (<tt>Object</tt>) <strong>last_index_of</strong>(element, from = 0, to = @array_list.size() - 1)
|
|
871
863
|
|
|
872
864
|
|
|
873
865
|
|
|
@@ -875,8 +867,8 @@ receiver.</p>
|
|
|
875
867
|
|
|
876
868
|
</h3><div class="docstring">
|
|
877
869
|
<div class="discussion">
|
|
878
|
-
<hr
|
|
879
|
-
<hr
|
|
870
|
+
<hr>
|
|
871
|
+
<hr>
|
|
880
872
|
|
|
881
873
|
|
|
882
874
|
</div>
|
|
@@ -897,10 +889,9 @@ receiver.</p>
|
|
|
897
889
|
<td>
|
|
898
890
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 96</span>
|
|
899
891
|
|
|
900
|
-
<span class='
|
|
901
|
-
<span class='
|
|
902
|
-
<span class='
|
|
903
|
-
</pre>
|
|
892
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_last_index_of'>last_index_of</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='comma'>,</span> <span class='id identifier rubyid_from'>from</span> <span class='op'>=</span> <span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_to'>to</span> <span class='op'>=</span> <span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='int'>1</span><span class='rparen'>)</span>
|
|
893
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_lastIndexOfFromTo'>lastIndexOfFromTo</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='comma'>,</span> <span class='id identifier rubyid_from'>from</span><span class='comma'>,</span> <span class='id identifier rubyid_to'>to</span><span class='rparen'>)</span>
|
|
894
|
+
<span class='kw'>end</span></pre>
|
|
904
895
|
</td>
|
|
905
896
|
</tr>
|
|
906
897
|
</table>
|
|
@@ -917,8 +908,8 @@ receiver.</p>
|
|
|
917
908
|
|
|
918
909
|
</h3><div class="docstring">
|
|
919
910
|
<div class="discussion">
|
|
920
|
-
<hr
|
|
921
|
-
<hr
|
|
911
|
+
<hr>
|
|
912
|
+
<hr>
|
|
922
913
|
|
|
923
914
|
|
|
924
915
|
</div>
|
|
@@ -939,10 +930,9 @@ receiver.</p>
|
|
|
939
930
|
<td>
|
|
940
931
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 138</span>
|
|
941
932
|
|
|
942
|
-
<span class='
|
|
943
|
-
<span class='
|
|
944
|
-
<span class='
|
|
945
|
-
</pre>
|
|
933
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_print'>print</span>
|
|
934
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_toString'>toString</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
935
|
+
<span class='kw'>end</span></pre>
|
|
946
936
|
</td>
|
|
947
937
|
</tr>
|
|
948
938
|
</table>
|
|
@@ -959,8 +949,8 @@ receiver.</p>
|
|
|
959
949
|
|
|
960
950
|
</h3><div class="docstring">
|
|
961
951
|
<div class="discussion">
|
|
962
|
-
<hr
|
|
963
|
-
<hr
|
|
952
|
+
<hr>
|
|
953
|
+
<hr>
|
|
964
954
|
|
|
965
955
|
|
|
966
956
|
</div>
|
|
@@ -981,10 +971,9 @@ receiver.</p>
|
|
|
981
971
|
<td>
|
|
982
972
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 104</span>
|
|
983
973
|
|
|
984
|
-
<span class='
|
|
985
|
-
<span class='
|
|
986
|
-
<span class='
|
|
987
|
-
</pre>
|
|
974
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_reverse'>reverse</span>
|
|
975
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_reverse'>reverse</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
976
|
+
<span class='kw'>end</span></pre>
|
|
988
977
|
</td>
|
|
989
978
|
</tr>
|
|
990
979
|
</table>
|
|
@@ -1005,8 +994,8 @@ receiver.</p>
|
|
|
1005
994
|
|
|
1006
995
|
</h3><div class="docstring">
|
|
1007
996
|
<div class="discussion">
|
|
1008
|
-
<hr
|
|
1009
|
-
<hr
|
|
997
|
+
<hr>
|
|
998
|
+
<hr>
|
|
1010
999
|
|
|
1011
1000
|
|
|
1012
1001
|
</div>
|
|
@@ -1027,10 +1016,9 @@ receiver.</p>
|
|
|
1027
1016
|
<td>
|
|
1028
1017
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 112</span>
|
|
1029
1018
|
|
|
1030
|
-
<span class='
|
|
1031
|
-
<span class='
|
|
1032
|
-
<span class='
|
|
1033
|
-
</pre>
|
|
1019
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='comma'>,</span> <span class='id identifier rubyid_element'>element</span><span class='rparen'>)</span>
|
|
1020
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='comma'>,</span> <span class='id identifier rubyid_element'>element</span><span class='rparen'>)</span>
|
|
1021
|
+
<span class='kw'>end</span></pre>
|
|
1034
1022
|
</td>
|
|
1035
1023
|
</tr>
|
|
1036
1024
|
</table>
|
|
@@ -1039,7 +1027,7 @@ receiver.</p>
|
|
|
1039
1027
|
<div class="method_details ">
|
|
1040
1028
|
<h3 class="signature " id="shuffle-instance_method">
|
|
1041
1029
|
|
|
1042
|
-
- (<tt>Object</tt>) <strong>shuffle</strong>(from = 0, to = @array_list.size()-1)
|
|
1030
|
+
- (<tt>Object</tt>) <strong>shuffle</strong>(from = 0, to = @array_list.size() - 1)
|
|
1043
1031
|
|
|
1044
1032
|
|
|
1045
1033
|
|
|
@@ -1047,8 +1035,8 @@ receiver.</p>
|
|
|
1047
1035
|
|
|
1048
1036
|
</h3><div class="docstring">
|
|
1049
1037
|
<div class="discussion">
|
|
1050
|
-
<hr
|
|
1051
|
-
<hr
|
|
1038
|
+
<hr>
|
|
1039
|
+
<hr>
|
|
1052
1040
|
|
|
1053
1041
|
|
|
1054
1042
|
</div>
|
|
@@ -1069,10 +1057,9 @@ receiver.</p>
|
|
|
1069
1057
|
<td>
|
|
1070
1058
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 122</span>
|
|
1071
1059
|
|
|
1072
|
-
<span class='
|
|
1073
|
-
<span class='
|
|
1074
|
-
<span class='
|
|
1075
|
-
</pre>
|
|
1060
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_shuffle'>shuffle</span><span class='lparen'>(</span><span class='id identifier rubyid_from'>from</span> <span class='op'>=</span> <span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_to'>to</span> <span class='op'>=</span> <span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='int'>1</span><span class='rparen'>)</span>
|
|
1061
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_shuffleFromTo'>shuffleFromTo</span><span class='lparen'>(</span><span class='id identifier rubyid_from'>from</span><span class='comma'>,</span> <span class='id identifier rubyid_to'>to</span><span class='rparen'>)</span>
|
|
1062
|
+
<span class='kw'>end</span></pre>
|
|
1076
1063
|
</td>
|
|
1077
1064
|
</tr>
|
|
1078
1065
|
</table>
|
|
@@ -1089,8 +1076,8 @@ receiver.</p>
|
|
|
1089
1076
|
|
|
1090
1077
|
</h3><div class="docstring">
|
|
1091
1078
|
<div class="discussion">
|
|
1092
|
-
<hr
|
|
1093
|
-
<hr
|
|
1079
|
+
<hr>
|
|
1080
|
+
<hr>
|
|
1094
1081
|
|
|
1095
1082
|
|
|
1096
1083
|
</div>
|
|
@@ -1111,10 +1098,9 @@ receiver.</p>
|
|
|
1111
1098
|
<td>
|
|
1112
1099
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 146</span>
|
|
1113
1100
|
|
|
1114
|
-
<span class='
|
|
1115
|
-
<span class='
|
|
1116
|
-
<span class='
|
|
1117
|
-
</pre>
|
|
1101
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
|
1102
|
+
<span class='id identifier rubyid_print'>print</span>
|
|
1103
|
+
<span class='kw'>end</span></pre>
|
|
1118
1104
|
</td>
|
|
1119
1105
|
</tr>
|
|
1120
1106
|
</table>
|
|
@@ -1131,8 +1117,8 @@ receiver.</p>
|
|
|
1131
1117
|
|
|
1132
1118
|
</h3><div class="docstring">
|
|
1133
1119
|
<div class="discussion">
|
|
1134
|
-
<hr
|
|
1135
|
-
<hr
|
|
1120
|
+
<hr>
|
|
1121
|
+
<hr>
|
|
1136
1122
|
|
|
1137
1123
|
|
|
1138
1124
|
</div>
|
|
@@ -1153,10 +1139,9 @@ receiver.</p>
|
|
|
1153
1139
|
<td>
|
|
1154
1140
|
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 130</span>
|
|
1155
1141
|
|
|
1156
|
-
<span class='
|
|
1157
|
-
<span class='
|
|
1158
|
-
<span class='
|
|
1159
|
-
</pre>
|
|
1142
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_trim_to_size'>trim_to_size</span>
|
|
1143
|
+
<span class='ivar'>@array_list</span><span class='period'>.</span><span class='id identifier rubyid_trimToSize'>trimToSize</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
1144
|
+
<span class='kw'>end</span></pre>
|
|
1160
1145
|
</td>
|
|
1161
1146
|
</tr>
|
|
1162
1147
|
</table>
|
|
@@ -1167,9 +1152,9 @@ receiver.</p>
|
|
|
1167
1152
|
</div>
|
|
1168
1153
|
|
|
1169
1154
|
<div id="footer">
|
|
1170
|
-
Generated on
|
|
1155
|
+
Generated on Tue Jul 14 18:08:59 2015 by
|
|
1171
1156
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1172
|
-
0.8.
|
|
1157
|
+
0.8.7.6 (ruby-1.9.3).
|
|
1173
1158
|
</div>
|
|
1174
1159
|
|
|
1175
1160
|
</body>
|