mdarray 0.4.3.pre-java → 0.5.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +82 -14
- data/Rakefile +8 -2
- data/doc/BinaryOperator.html +227 -0
- data/doc/BitwiseOperators.html +135 -0
- data/doc/BooleanFunctions.html +135 -0
- data/doc/BooleanMDArray.html +193 -0
- data/doc/ByteMDArray.html +271 -0
- data/doc/Colt.html +269 -0
- data/doc/ComparisonOperators.html +135 -0
- data/doc/Const.html +490 -0
- data/doc/Csv.html +589 -0
- data/doc/DDescriptive.html +4373 -0
- data/doc/DoubleMDArray.html +555 -0
- data/doc/DoubleStatList.html +256 -0
- data/doc/FastBinaryOperator.html +743 -0
- data/doc/FastBoolean.html +512 -0
- data/doc/FastUnaryOperator.html +583 -0
- data/doc/FloatMDArray.html +237 -0
- data/doc/FunctionCreation.html +520 -0
- data/doc/FunctionMap.html +813 -0
- data/doc/GenericFunctions.html +135 -0
- data/doc/IntMDArray.html +259 -0
- data/doc/LongMDArray.html +257 -0
- data/doc/MDArray.html +9639 -0
- data/doc/MDArray/Counter.html +2767 -0
- data/doc/MDArray/IteratorFast.html +872 -0
- data/doc/MDArray/IteratorFastBoolean.html +384 -0
- data/doc/MDArray/IteratorFastByte.html +373 -0
- data/doc/MDArray/IteratorFastChar.html +384 -0
- data/doc/MDArray/IteratorFastDouble.html +384 -0
- data/doc/MDArray/IteratorFastFloat.html +384 -0
- data/doc/MDArray/IteratorFastInt.html +384 -0
- data/doc/MDArray/IteratorFastLong.html +384 -0
- data/doc/MDArray/IteratorFastShort.html +384 -0
- data/doc/MDArrayTest.html +125 -0
- data/doc/NonNumericalMDArray.html +177 -0
- data/doc/NumericFunctions.html +297 -0
- data/doc/NumericalMDArray.html +278 -0
- data/doc/Operator.html +826 -0
- data/doc/Proc.html +1097 -0
- data/doc/RubyBinaryOperator.html +526 -0
- data/doc/RubyFunctions.html +232 -0
- data/doc/RubyMath.html +135 -0
- data/doc/RubyStats.html +135 -0
- data/doc/RubyUnaryOperator.html +510 -0
- data/doc/ShortMDArray.html +267 -0
- data/doc/StatList.html +1176 -0
- data/doc/StringMDArray.html +181 -0
- data/doc/StructureMDArray.html +181 -0
- data/doc/UnaryOperator.html +227 -0
- data/doc/UserFunction.html +297 -0
- data/doc/_index.html +467 -0
- data/doc/class_list.html +53 -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 +173 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +173 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +2524 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/colt/colt.rb +56 -0
- data/lib/colt/colt_mdarray.rb +95 -0
- data/lib/colt/double_descriptive.rb +636 -0
- data/lib/colt/probability.rb +12 -0
- data/lib/colt/stat_list.rb +192 -0
- data/lib/env.rb +5 -1
- data/lib/mdarray.rb +5 -0
- data/lib/mdarray/access.rb +2 -2
- data/lib/mdarray/creation.rb +34 -19
- data/lib/mdarray/csv.rb +61 -0
- data/lib/mdarray/fast_operators.rb +241 -0
- data/lib/mdarray/operators.rb +18 -0
- data/lib/mdarray/ruby_operators.rb +2 -18
- data/lib/mdarray/ruby_stats.rb +1 -1
- data/lib/mdarray/views.rb +8 -8
- data/target/helper.jar +0 -0
- data/test/colt/VALE3.csv +3437 -0
- data/test/colt/VALE3.xlsx +0 -0
- data/test/colt/VALE3_short-err.csv +20 -0
- data/test/colt/VALE3_short.csv +20 -0
- data/test/colt/VALE3_short.xlsx +0 -0
- data/test/colt/test_complete.rb +25 -0
- data/test/colt/test_stat_list.rb +128 -0
- data/test/colt/test_statistics.rb +114 -0
- data/test/complete.rb +25 -0
- data/test/env.rb +54 -30
- data/test/{arithmetic_casting.rb → mdarray/arithmetic_casting.rb} +0 -0
- data/test/{test_access.rb → mdarray/test_access.rb} +0 -0
- data/test/{test_boolean.rb → mdarray/test_boolean.rb} +0 -2
- data/test/{test_comparison.rb → mdarray/test_comparison.rb} +0 -0
- data/test/{test_complete.rb → mdarray/test_complete.rb} +3 -14
- data/test/{test_counter.rb → mdarray/test_counter.rb} +0 -0
- data/test/{test_creation.rb → mdarray/test_creation.rb} +0 -0
- data/test/{test_error.rb → mdarray/test_error.rb} +8 -5
- data/test/{test_operator.rb → mdarray/test_operator.rb} +6 -2
- data/test/{test_speed.rb → mdarray/test_performance.rb} +74 -39
- data/test/{test_printing.rb → mdarray/test_printing.rb} +0 -1
- data/test/{test_shape.rb → mdarray/test_shape.rb} +0 -0
- data/test/mdarray/test_statistics.rb +80 -0
- data/test/{test_trigonometry.rb → mdarray/test_trigonometry.rb} +0 -0
- data/test/{test_views.rb → mdarray/test_views.rb} +0 -0
- data/vendor/parallelcolt-0.10.0.jar +0 -0
- data/version.rb +1 -1
- metadata +122 -39
- data/test/test_lazy.rb +0 -52
- data/test/test_statistics.rb +0 -38
@@ -0,0 +1,267 @@
|
|
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: ShortMDArray
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" 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 (S)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">ShortMDArray</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: ShortMDArray
|
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"><span class='object_link'><a href="IntMDArray.html" title="IntMDArray (class)">IntMDArray</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></li>
|
82
|
+
|
83
|
+
<li class="next"><span class='object_link'><a href="NumericalMDArray.html" title="NumericalMDArray (class)">NumericalMDArray</a></span></li>
|
84
|
+
|
85
|
+
<li class="next"><span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></li>
|
86
|
+
|
87
|
+
<li class="next"><span class='object_link'><a href="FloatMDArray.html" title="FloatMDArray (class)">FloatMDArray</a></span></li>
|
88
|
+
|
89
|
+
<li class="next"><span class='object_link'><a href="LongMDArray.html" title="LongMDArray (class)">LongMDArray</a></span></li>
|
90
|
+
|
91
|
+
<li class="next"><span class='object_link'><a href="IntMDArray.html" title="IntMDArray (class)">IntMDArray</a></span></li>
|
92
|
+
|
93
|
+
<li class="next">ShortMDArray</li>
|
94
|
+
|
95
|
+
</ul>
|
96
|
+
<a href="#" class="inheritanceTree">show all</a>
|
97
|
+
|
98
|
+
</dd>
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
<dt class="r2 last">Defined in:</dt>
|
109
|
+
<dd class="r2 last">lib/mdarray/hierarchy.rb</dd>
|
110
|
+
|
111
|
+
</dl>
|
112
|
+
<div class="clear"></div>
|
113
|
+
|
114
|
+
<div id="subclasses">
|
115
|
+
<h2>Direct Known Subclasses</h2>
|
116
|
+
<p class="children"><span class='object_link'><a href="ByteMDArray.html" title="ByteMDArray (class)">ByteMDArray</a></span></p>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
<h2>Instance Attribute Summary</h2>
|
125
|
+
|
126
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></h3>
|
127
|
+
<p class="inherited"><span class='object_link'><a href="DoubleMDArray.html#stat_list-instance_method" title="DoubleMDArray#stat_list (method)">#stat_list</a></span></p>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
132
|
+
<p class="inherited"><span class='object_link'><a href="MDArray.html#binary_operator-instance_method" title="MDArray#binary_operator (method)">#binary_operator</a></span>, <span class='object_link'><a href="MDArray.html#coerced-instance_method" title="MDArray#coerced (method)">#coerced</a></span>, <span class='object_link'><a href="MDArray.html#float_output_precision%3D-instance_method" title="MDArray#float_output_precision= (method)">#float_output_precision</a></span>, <span class='object_link'><a href="MDArray.html#float_output_suppress_small%3D-instance_method" title="MDArray#float_output_suppress_small= (method)">#float_output_suppress_small</a></span>, <span class='object_link'><a href="MDArray.html#formatter%3D-instance_method" title="MDArray#formatter= (method)">#formatter</a></span>, <span class='object_link'><a href="MDArray.html#inf_str%3D-instance_method" title="MDArray#inf_str= (method)">#inf_str</a></span>, <span class='object_link'><a href="MDArray.html#int_output_size%3D-instance_method" title="MDArray#int_output_size= (method)">#int_output_size</a></span>, <span class='object_link'><a href="MDArray.html#local_index-instance_method" title="MDArray#local_index (method)">#local_index</a></span>, <span class='object_link'><a href="MDArray.html#local_iterator-instance_method" title="MDArray#local_iterator (method)">#local_iterator</a></span>, <span class='object_link'><a href="MDArray.html#max_line_width%3D-instance_method" title="MDArray#max_line_width= (method)">#max_line_width</a></span>, <span class='object_link'><a href="MDArray.html#nan_str%3D-instance_method" title="MDArray#nan_str= (method)">#nan_str</a></span>, <span class='object_link'><a href="MDArray.html#nc_array-instance_method" title="MDArray#nc_array (method)">#nc_array</a></span>, <span class='object_link'><a href="MDArray.html#prefix%3D-instance_method" title="MDArray#prefix= (method)">#prefix</a></span>, <span class='object_link'><a href="MDArray.html#separator%3D-instance_method" title="MDArray#separator= (method)">#separator</a></span>, <span class='object_link'><a href="MDArray.html#summary_edge_items%3D-instance_method" title="MDArray#summary_edge_items= (method)">#summary_edge_items</a></span>, <span class='object_link'><a href="MDArray.html#summary_threshold%3D-instance_method" title="MDArray#summary_threshold= (method)">#summary_threshold</a></span>, <span class='object_link'><a href="MDArray.html#type-instance_method" title="MDArray#type (method)">#type</a></span>, <span class='object_link'><a href="MDArray.html#unary_operator-instance_method" title="MDArray#unary_operator (method)">#unary_operator</a></span></p>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<h2>Method Summary</h2>
|
161
|
+
|
162
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="RubyFunctions.html" title="RubyFunctions (module)">RubyFunctions</a></span></h3>
|
163
|
+
<p class="inherited"><span class='object_link'><a href="RubyFunctions.html#ruby_binary_function-instance_method" title="RubyFunctions#ruby_binary_function (method)">#ruby_binary_function</a></span>, <span class='object_link'><a href="RubyFunctions.html#ruby_unary_function-instance_method" title="RubyFunctions#ruby_unary_function (method)">#ruby_unary_function</a></span></p>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="FunctionCreation.html" title="FunctionCreation (module)">FunctionCreation</a></span></h3>
|
174
|
+
<p class="inherited"><span class='object_link'><a href="FunctionCreation.html#make_binary_op-instance_method" title="FunctionCreation#make_binary_op (method)">#make_binary_op</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_binary_operators-instance_method" title="FunctionCreation#make_binary_operators (method)">#make_binary_operators</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_comparison_op-instance_method" title="FunctionCreation#make_comparison_op (method)">#make_comparison_op</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_unary_op-instance_method" title="FunctionCreation#make_unary_op (method)">#make_unary_op</a></span>, <span class='object_link'><a href="FunctionCreation.html#make_unary_operators-instance_method" title="FunctionCreation#make_unary_operators (method)">#make_unary_operators</a></span></p>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="DoubleMDArray.html" title="DoubleMDArray (class)">DoubleMDArray</a></span></h3>
|
191
|
+
<p class="inherited"><span class='object_link'><a href="DoubleMDArray.html#colt_stats-class_method" title="DoubleMDArray.colt_stats (method)">colt_stats</a></span>, <span class='object_link'><a href="DoubleMDArray.html#reset_statistics-instance_method" title="DoubleMDArray#reset_statistics (method)">#reset_statistics</a></span></p>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="NumericalMDArray.html" title="NumericalMDArray (class)">NumericalMDArray</a></span></h3>
|
208
|
+
<p class="inherited"><span class='object_link'><a href="NumericalMDArray.html#coerce-instance_method" title="NumericalMDArray#coerce (method)">#coerce</a></span></p>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="NumericFunctions.html" title="NumericFunctions (module)">NumericFunctions</a></span></h3>
|
225
|
+
<p class="inherited"><span class='object_link'><a href="NumericFunctions.html#fast_add-instance_method" title="NumericFunctions#fast_add (method)">#fast_add</a></span>, <span class='object_link'><a href="NumericFunctions.html#zero%3F-instance_method" title="NumericFunctions#zero? (method)">#zero?</a></span></p>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="MDArray.html" title="MDArray (class)">MDArray</a></span></h3>
|
242
|
+
<p class="inherited"><span class='object_link'><a href="MDArray.html#%5B%5D-instance_method" title="MDArray#[] (method)">#[]</a></span>, <span class='object_link'><a href="MDArray.html#%5B%5D%3D-instance_method" title="MDArray#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="MDArray.html#apply_over_axes-instance_method" title="MDArray#apply_over_axes (method)">#apply_over_axes</a></span>, <span class='object_link'><a href="MDArray.html#arange-class_method" title="MDArray.arange (method)">arange</a></span>, <span class='object_link'><a href="MDArray.html#boolean-class_method" title="MDArray.boolean (method)">boolean</a></span>, <span class='object_link'><a href="MDArray.html#build-class_method" title="MDArray.build (method)">build</a></span>, <span class='object_link'><a href="MDArray.html#build_from_nc_array-class_method" title="MDArray.build_from_nc_array (method)">build_from_nc_array</a></span>, <span class='object_link'><a href="MDArray.html#byte-class_method" title="MDArray.byte (method)">byte</a></span>, <span class='object_link'><a href="MDArray.html#char-class_method" title="MDArray.char (method)">char</a></span>, <span class='object_link'><a href="MDArray.html#compatible-instance_method" title="MDArray#compatible (method)">#compatible</a></span>, <span class='object_link'><a href="MDArray.html#copy-instance_method" title="MDArray#copy (method)">#copy</a></span>, <span class='object_link'><a href="MDArray.html#csv1d-instance_method" title="MDArray#csv1d (method)">#csv1d</a></span>, <span class='object_link'><a href="MDArray.html#double-class_method" title="MDArray.double (method)">double</a></span>, <span class='object_link'><a href="MDArray.html#dtype-instance_method" title="MDArray#dtype (method)">#dtype</a></span>, <span class='object_link'><a href="MDArray.html#each-instance_method" title="MDArray#each (method)">#each</a></span>, <span class='object_link'><a href="MDArray.html#each_cont-instance_method" title="MDArray#each_cont (method)">#each_cont</a></span>, <span class='object_link'><a href="MDArray.html#each_slice-instance_method" title="MDArray#each_slice (method)">#each_slice</a></span>, <span class='object_link'><a href="MDArray.html#each_with_counter-instance_method" title="MDArray#each_with_counter (method)">#each_with_counter</a></span>, <span class='object_link'><a href="MDArray.html#float-class_method" title="MDArray.float (method)">float</a></span>, <span class='object_link'><a href="MDArray.html#fromfunction-class_method" title="MDArray.fromfunction (method)">fromfunction</a></span>, <span class='object_link'><a href="MDArray.html#function_map_to_csv-class_method" title="MDArray.function_map_to_csv (method)">function_map_to_csv</a></span>, <span class='object_link'><a href="MDArray.html#get-instance_method" title="MDArray#get (method)">#get</a></span>, <span class='object_link'><a href="MDArray.html#get_binary_op-instance_method" title="MDArray#get_binary_op (method)">#get_binary_op</a></span>, <span class='object_link'><a href="MDArray.html#get_counter-instance_method" title="MDArray#get_counter (method)">#get_counter</a></span>, <span class='object_link'><a href="MDArray.html#get_current_index-instance_method" title="MDArray#get_current_index (method)">#get_current_index</a></span>, <span class='object_link'><a href="MDArray.html#get_element_type-instance_method" title="MDArray#get_element_type (method)">#get_element_type</a></span>, <span class='object_link'><a href="MDArray.html#get_index-instance_method" title="MDArray#get_index (method)">#get_index</a></span>, <span class='object_link'><a href="MDArray.html#get_iterator_fast-instance_method" title="MDArray#get_iterator_fast (method)">#get_iterator_fast</a></span>, <span class='object_link'><a href="MDArray.html#get_next-instance_method" title="MDArray#get_next (method)">#get_next</a></span>, <span class='object_link'><a href="MDArray.html#get_rank-instance_method" title="MDArray#get_rank (method)">#get_rank</a></span>, <span class='object_link'><a href="MDArray.html#get_shape-instance_method" title="MDArray#get_shape (method)">#get_shape</a></span>, <span class='object_link'><a href="MDArray.html#get_size-instance_method" title="MDArray#get_size (method)">#get_size</a></span>, <span class='object_link'><a href="MDArray.html#get_unary_op-instance_method" title="MDArray#get_unary_op (method)">#get_unary_op</a></span>, <span class='object_link'><a href="MDArray.html#init_with-class_method" title="MDArray.init_with (method)">init_with</a></span>, <span class='object_link'><a href="MDArray.html#initialize-instance_method" title="MDArray#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="MDArray.html#int-class_method" title="MDArray.int (method)">int</a></span>, <span class='object_link'><a href="MDArray.html#linspace-class_method" title="MDArray.linspace (method)">linspace</a></span>, <span class='object_link'><a href="MDArray.html#long-class_method" title="MDArray.long (method)">long</a></span>, <span class='object_link'><a href="MDArray.html#make_binary_op-class_method" title="MDArray.make_binary_op (method)">make_binary_op</a></span>, <span class='object_link'><a href="MDArray.html#make_unary_op-class_method" title="MDArray.make_unary_op (method)">make_unary_op</a></span>, <span class='object_link'><a href="MDArray.html#ndenumerate-instance_method" title="MDArray#ndenumerate (method)">#ndenumerate</a></span>, <span class='object_link'><a href="MDArray.html#ndim-instance_method" title="MDArray#ndim (method)">#ndim</a></span>, <span class='object_link'><a href="MDArray.html#next-instance_method" title="MDArray#next (method)">#next</a></span>, <span class='object_link'><a href="MDArray.html#ones-class_method" title="MDArray.ones (method)">ones</a></span>, <span class='object_link'><a href="MDArray.html#permute-instance_method" title="MDArray#permute (method)">#permute</a></span>, <span class='object_link'><a href="MDArray.html#print-instance_method" title="MDArray#print (method)">#print</a></span>, <span class='object_link'><a href="MDArray.html#print1d-instance_method" title="MDArray#print1d (method)">#print1d</a></span>, <span class='object_link'><a href="MDArray.html#print_function_map-class_method" title="MDArray.print_function_map (method)">print_function_map</a></span>, <span class='object_link'><a href="MDArray.html#printing_defaults-instance_method" title="MDArray#printing_defaults (method)">#printing_defaults</a></span>, <span class='object_link'><a href="MDArray.html#rank-instance_method" title="MDArray#rank (method)">#rank</a></span>, <span class='object_link'><a href="MDArray.html#reduce-instance_method" title="MDArray#reduce (method)">#reduce</a></span>, <span class='object_link'><a href="MDArray.html#register_function-class_method" title="MDArray.register_function (method)">register_function</a></span>, <span class='object_link'><a href="MDArray.html#reset_traversal-instance_method" title="MDArray#reset_traversal (method)">#reset_traversal</a></span>, <span class='object_link'><a href="MDArray.html#reshape-instance_method" title="MDArray#reshape (method)">#reshape</a></span>, <span class='object_link'><a href="MDArray.html#reshape%21-instance_method" title="MDArray#reshape! (method)">#reshape!</a></span>, <span class='object_link'><a href="MDArray.html#section-instance_method" title="MDArray#section (method)">#section</a></span>, <span class='object_link'><a href="MDArray.html#section%3F-instance_method" title="MDArray#section? (method)">#section?</a></span>, <span class='object_link'><a href="MDArray.html#section_with_stride-instance_method" title="MDArray#section_with_stride (method)">#section_with_stride</a></span>, <span class='object_link'><a href="MDArray.html#select_function-class_method" title="MDArray.select_function (method)">select_function</a></span>, <span class='object_link'><a href="MDArray.html#set-instance_method" title="MDArray#set (method)">#set</a></span>, <span class='object_link'><a href="MDArray.html#set_next-instance_method" title="MDArray#set_next (method)">#set_next</a></span>, <span class='object_link'><a href="MDArray.html#shape-instance_method" title="MDArray#shape (method)">#shape</a></span>, <span class='object_link'><a href="MDArray.html#short-class_method" title="MDArray.short (method)">short</a></span>, <span class='object_link'><a href="MDArray.html#size-instance_method" title="MDArray#size (method)">#size</a></span>, <span class='object_link'><a href="MDArray.html#slice-instance_method" title="MDArray#slice (method)">#slice</a></span>, <span class='object_link'><a href="MDArray.html#string-class_method" title="MDArray.string (method)">string</a></span>, <span class='object_link'><a href="MDArray.html#structure-class_method" title="MDArray.structure (method)">structure</a></span>, <span class='object_link'><a href="MDArray.html#to_csv-instance_method" title="MDArray#to_csv (method)">#to_csv</a></span>, <span class='object_link'><a href="MDArray.html#to_s-instance_method" title="MDArray#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="MDArray.html#to_string-instance_method" title="MDArray#to_string (method)">#to_string</a></span>, <span class='object_link'><a href="MDArray.html#transpose-instance_method" title="MDArray#transpose (method)">#transpose</a></span>, <span class='object_link'><a href="MDArray.html#typed_arange-class_method" title="MDArray.typed_arange (method)">typed_arange</a></span>, <span class='object_link'><a href="MDArray.html#upcast-class_method" title="MDArray.upcast (method)">upcast</a></span></p>
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
<div id="constructor_details" class="method_details_list">
|
251
|
+
<h2>Constructor Details</h2>
|
252
|
+
|
253
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="MDArray.html#initialize-instance_method" title="MDArray#initialize (method)">MDArray</a></span></p>
|
254
|
+
|
255
|
+
</div>
|
256
|
+
|
257
|
+
|
258
|
+
</div>
|
259
|
+
|
260
|
+
<div id="footer">
|
261
|
+
Generated on Thu May 16 12:48:39 2013 by
|
262
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
263
|
+
0.8.5.2 (ruby-1.9.3).
|
264
|
+
</div>
|
265
|
+
|
266
|
+
</body>
|
267
|
+
</html>
|
data/doc/StatList.html
ADDED
@@ -0,0 +1,1176 @@
|
|
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: StatList
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" 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 (S)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">StatList</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: StatList
|
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">StatList</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/colt/stat_list.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<div id="subclasses">
|
103
|
+
<h2>Direct Known Subclasses</h2>
|
104
|
+
<p class="children"><span class='object_link'><a href="DoubleStatList.html" title="DoubleStatList (class)">DoubleStatList</a></span></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
111
|
+
<ul class="summary">
|
112
|
+
|
113
|
+
<li class="public ">
|
114
|
+
<span class="summary_signature">
|
115
|
+
|
116
|
+
<a href="#array_list-instance_method" title="#array_list (instance method)">- (Object) <strong>array_list</strong> </a>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
</span>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<span class="note title readonly">readonly</span>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<span class="summary_desc"><div class='inline'>
|
136
|
+
<p>Returns the value of attribute array_list.</p>
|
137
|
+
</div></span>
|
138
|
+
|
139
|
+
</li>
|
140
|
+
|
141
|
+
|
142
|
+
</ul>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<h2>
|
149
|
+
Instance Method Summary
|
150
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
151
|
+
</h2>
|
152
|
+
|
153
|
+
<ul class="summary">
|
154
|
+
|
155
|
+
<li class="public ">
|
156
|
+
<span class="summary_signature">
|
157
|
+
|
158
|
+
<a href="#add-instance_method" title="#add (instance method)">- (Object) <strong>add</strong>(element) </a>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
</span>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<span class="summary_desc"><div class='inline'><hr style="height: 10px">
|
173
|
+
|
174
|
+
<p>Appends the specified element to the end of this list.</p>
|
175
|
+
</div></span>
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
180
|
+
<li class="public ">
|
181
|
+
<span class="summary_signature">
|
182
|
+
|
183
|
+
<a href="#before_insert-instance_method" title="#before_insert (instance method)">- (Object) <strong>before_insert</strong>(index, element) </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<span class="summary_desc"><div class='inline'><hr style="height: 10px">
|
198
|
+
|
199
|
+
<p>Inserts the specified element before the specified position into the
|
200
|
+
receiver.</p>
|
201
|
+
</div></span>
|
202
|
+
|
203
|
+
</li>
|
204
|
+
|
205
|
+
|
206
|
+
<li class="public ">
|
207
|
+
<span class="summary_signature">
|
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>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
</span>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
<span class="summary_desc"><div class='inline'>
|
224
|
+
<p>????????????????????????????.</p>
|
225
|
+
</div></span>
|
226
|
+
|
227
|
+
</li>
|
228
|
+
|
229
|
+
|
230
|
+
<li class="public ">
|
231
|
+
<span class="summary_signature">
|
232
|
+
|
233
|
+
<a href="#copy-instance_method" title="#copy (instance method)">- (Object) <strong>copy</strong> </a>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
</span>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<span class="summary_desc"><div class='inline'>
|
248
|
+
<p>????????????????????????????.</p>
|
249
|
+
</div></span>
|
250
|
+
|
251
|
+
</li>
|
252
|
+
|
253
|
+
|
254
|
+
<li class="public ">
|
255
|
+
<span class="summary_signature">
|
256
|
+
|
257
|
+
<a href="#elements-instance_method" title="#elements (instance method)">- (Object) <strong>elements</strong> </a>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</span>
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
<span class="summary_desc"><div class='inline'><hr style="height: 10px">
|
272
|
+
|
273
|
+
<p>Returns the elements currently stored.</p>
|
274
|
+
</div></span>
|
275
|
+
|
276
|
+
</li>
|
277
|
+
|
278
|
+
|
279
|
+
<li class="public ">
|
280
|
+
<span class="summary_signature">
|
281
|
+
|
282
|
+
<a href="#get-instance_method" title="#get (instance method)">- (Object) <strong>get</strong>(index) </a>
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
(also: #[])
|
287
|
+
|
288
|
+
</span>
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
<span class="summary_desc"><div class='inline'><hr style="height: 10px">
|
299
|
+
|
300
|
+
<p>Returns the element at the specified position in the receiver.</p>
|
301
|
+
</div></span>
|
302
|
+
|
303
|
+
</li>
|
304
|
+
|
305
|
+
|
306
|
+
<li class="public ">
|
307
|
+
<span class="summary_signature">
|
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>
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
</span>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
<span class="summary_desc"><div class='inline'>
|
324
|
+
<p>????????????????????????????.</p>
|
325
|
+
</div></span>
|
326
|
+
|
327
|
+
</li>
|
328
|
+
|
329
|
+
|
330
|
+
<li class="public ">
|
331
|
+
<span class="summary_signature">
|
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>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
</span>
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
<span class="summary_desc"><div class='inline'>
|
348
|
+
<p>????????????????????????????.</p>
|
349
|
+
</div></span>
|
350
|
+
|
351
|
+
</li>
|
352
|
+
|
353
|
+
|
354
|
+
<li class="public ">
|
355
|
+
<span class="summary_signature">
|
356
|
+
|
357
|
+
<a href="#print-instance_method" title="#print (instance method)">- (Object) <strong>print</strong> </a>
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
</span>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
<span class="summary_desc"><div class='inline'>
|
372
|
+
<p>????????????????????????????.</p>
|
373
|
+
</div></span>
|
374
|
+
|
375
|
+
</li>
|
376
|
+
|
377
|
+
|
378
|
+
<li class="public ">
|
379
|
+
<span class="summary_signature">
|
380
|
+
|
381
|
+
<a href="#reverse-instance_method" title="#reverse (instance method)">- (Object) <strong>reverse</strong> </a>
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
</span>
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
<span class="summary_desc"><div class='inline'>
|
396
|
+
<p>????????????????????????????.</p>
|
397
|
+
</div></span>
|
398
|
+
|
399
|
+
</li>
|
400
|
+
|
401
|
+
|
402
|
+
<li class="public ">
|
403
|
+
<span class="summary_signature">
|
404
|
+
|
405
|
+
<a href="#set-instance_method" title="#set (instance method)">- (Object) <strong>set</strong>(index, element) </a>
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
(also: #[]=)
|
410
|
+
|
411
|
+
</span>
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
<span class="summary_desc"><div class='inline'>
|
422
|
+
<p>????????????????????????????.</p>
|
423
|
+
</div></span>
|
424
|
+
|
425
|
+
</li>
|
426
|
+
|
427
|
+
|
428
|
+
<li class="public ">
|
429
|
+
<span class="summary_signature">
|
430
|
+
|
431
|
+
<a href="#shuffle-instance_method" title="#shuffle (instance method)">- (Object) <strong>shuffle</strong>(from = 0, to = @array_list.size()-1) </a>
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
</span>
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
<span class="summary_desc"><div class='inline'>
|
446
|
+
<p>????????????????????????????.</p>
|
447
|
+
</div></span>
|
448
|
+
|
449
|
+
</li>
|
450
|
+
|
451
|
+
|
452
|
+
<li class="public ">
|
453
|
+
<span class="summary_signature">
|
454
|
+
|
455
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
</span>
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
<span class="summary_desc"><div class='inline'>
|
470
|
+
<p>????????????????????????????.</p>
|
471
|
+
</div></span>
|
472
|
+
|
473
|
+
</li>
|
474
|
+
|
475
|
+
|
476
|
+
<li class="public ">
|
477
|
+
<span class="summary_signature">
|
478
|
+
|
479
|
+
<a href="#trim_to_size-instance_method" title="#trim_to_size (instance method)">- (Object) <strong>trim_to_size</strong> </a>
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
</span>
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
<span class="summary_desc"><div class='inline'>
|
494
|
+
<p>????????????????????????????.</p>
|
495
|
+
</div></span>
|
496
|
+
|
497
|
+
</li>
|
498
|
+
|
499
|
+
|
500
|
+
</ul>
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
<div id="instance_attr_details" class="attr_details">
|
505
|
+
<h2>Instance Attribute Details</h2>
|
506
|
+
|
507
|
+
|
508
|
+
<span id=""></span>
|
509
|
+
<div class="method_details first">
|
510
|
+
<h3 class="signature first" id="array_list-instance_method">
|
511
|
+
|
512
|
+
- (<tt>Object</tt>) <strong>array_list</strong> <span class="extras">(readonly)</span>
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
</h3><div class="docstring">
|
519
|
+
<div class="discussion">
|
520
|
+
|
521
|
+
<p>Returns the value of attribute array_list</p>
|
522
|
+
|
523
|
+
|
524
|
+
</div>
|
525
|
+
</div>
|
526
|
+
<div class="tags">
|
527
|
+
|
528
|
+
|
529
|
+
</div><table class="source_code">
|
530
|
+
<tr>
|
531
|
+
<td>
|
532
|
+
<pre class="lines">
|
533
|
+
|
534
|
+
|
535
|
+
31
|
536
|
+
32
|
537
|
+
33</pre>
|
538
|
+
</td>
|
539
|
+
<td>
|
540
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 31</span>
|
541
|
+
|
542
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_array_list identifier id'>array_list</span>
|
543
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span>
|
544
|
+
<span class='rubyid_end end kw'>end</span>
|
545
|
+
</pre>
|
546
|
+
</td>
|
547
|
+
</tr>
|
548
|
+
</table>
|
549
|
+
</div>
|
550
|
+
|
551
|
+
</div>
|
552
|
+
|
553
|
+
|
554
|
+
<div id="instance_method_details" class="method_details_list">
|
555
|
+
<h2>Instance Method Details</h2>
|
556
|
+
|
557
|
+
|
558
|
+
<div class="method_details first">
|
559
|
+
<h3 class="signature first" id="add-instance_method">
|
560
|
+
|
561
|
+
- (<tt>Object</tt>) <strong>add</strong>(element)
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
</h3><div class="docstring">
|
568
|
+
<div class="discussion">
|
569
|
+
<hr style="height: 10px">
|
570
|
+
|
571
|
+
<p>Appends the specified element to the end of this list.</p>
|
572
|
+
<hr style="height: 10px">
|
573
|
+
|
574
|
+
|
575
|
+
</div>
|
576
|
+
</div>
|
577
|
+
<div class="tags">
|
578
|
+
|
579
|
+
|
580
|
+
</div><table class="source_code">
|
581
|
+
<tr>
|
582
|
+
<td>
|
583
|
+
<pre class="lines">
|
584
|
+
|
585
|
+
|
586
|
+
37
|
587
|
+
38
|
588
|
+
39</pre>
|
589
|
+
</td>
|
590
|
+
<td>
|
591
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 37</span>
|
592
|
+
|
593
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_add identifier id'>add</span><span class='lparen token'>(</span><span class='rubyid_element identifier id'>element</span><span class='rparen token'>)</span>
|
594
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_add identifier id'>add</span><span class='lparen token'>(</span><span class='rubyid_element identifier id'>element</span><span class='rparen token'>)</span>
|
595
|
+
<span class='rubyid_end end kw'>end</span>
|
596
|
+
</pre>
|
597
|
+
</td>
|
598
|
+
</tr>
|
599
|
+
</table>
|
600
|
+
</div>
|
601
|
+
|
602
|
+
<div class="method_details ">
|
603
|
+
<h3 class="signature " id="before_insert-instance_method">
|
604
|
+
|
605
|
+
- (<tt>Object</tt>) <strong>before_insert</strong>(index, element)
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
|
610
|
+
|
611
|
+
</h3><div class="docstring">
|
612
|
+
<div class="discussion">
|
613
|
+
<hr style="height: 10px">
|
614
|
+
|
615
|
+
<p>Inserts the specified element before the specified position into the
|
616
|
+
receiver.</p>
|
617
|
+
<hr style="height: 10px">
|
618
|
+
|
619
|
+
|
620
|
+
</div>
|
621
|
+
</div>
|
622
|
+
<div class="tags">
|
623
|
+
|
624
|
+
|
625
|
+
</div><table class="source_code">
|
626
|
+
<tr>
|
627
|
+
<td>
|
628
|
+
<pre class="lines">
|
629
|
+
|
630
|
+
|
631
|
+
45
|
632
|
+
46
|
633
|
+
47</pre>
|
634
|
+
</td>
|
635
|
+
<td>
|
636
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 45</span>
|
637
|
+
|
638
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_before_insert identifier id'>before_insert</span><span class='lparen token'>(</span><span class='rubyid_index identifier id'>index</span><span class='comma token'>,</span> <span class='rubyid_element identifier id'>element</span><span class='rparen token'>)</span>
|
639
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_beforeInsert identifier id'>beforeInsert</span><span class='lparen token'>(</span><span class='rubyid_index identifier id'>index</span><span class='comma token'>,</span> <span class='rubyid_element identifier id'>element</span><span class='rparen token'>)</span>
|
640
|
+
<span class='rubyid_end end kw'>end</span>
|
641
|
+
</pre>
|
642
|
+
</td>
|
643
|
+
</tr>
|
644
|
+
</table>
|
645
|
+
</div>
|
646
|
+
|
647
|
+
<div class="method_details ">
|
648
|
+
<h3 class="signature " id="binary_search-instance_method">
|
649
|
+
|
650
|
+
- (<tt>Object</tt>) <strong>binary_search</strong>(key, from = 0, to = @array_list.size()-1)
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
</h3><div class="docstring">
|
657
|
+
<div class="discussion">
|
658
|
+
<hr style="height: 10px">
|
659
|
+
<hr style="height: 10px">
|
660
|
+
|
661
|
+
|
662
|
+
</div>
|
663
|
+
</div>
|
664
|
+
<div class="tags">
|
665
|
+
|
666
|
+
|
667
|
+
</div><table class="source_code">
|
668
|
+
<tr>
|
669
|
+
<td>
|
670
|
+
<pre class="lines">
|
671
|
+
|
672
|
+
|
673
|
+
53
|
674
|
+
54
|
675
|
+
55</pre>
|
676
|
+
</td>
|
677
|
+
<td>
|
678
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 53</span>
|
679
|
+
|
680
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_binary_search identifier id'>binary_search</span><span class='lparen token'>(</span><span class='rubyid_key identifier id'>key</span><span class='comma token'>,</span> <span class='rubyid_from identifier id'>from</span> <span class='assign token'>=</span> <span class='integer val'>0</span><span class='comma token'>,</span> <span class='rubyid_to identifier id'>to</span> <span class='assign token'>=</span> <span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span><span class='lparen token'>(</span><span class='rparen token'>)</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
|
681
|
+
<span class='rubyid_sorted_data identifier id'>sorted_data</span><span class='dot token'>.</span><span class='rubyid_binarySearchFromTo identifier id'>binarySearchFromTo</span><span class='lparen token'>(</span><span class='rubyid_key identifier id'>key</span><span class='comma token'>,</span> <span class='rubyid_from identifier id'>from</span><span class='comma token'>,</span> <span class='rubyid_to identifier id'>to</span><span class='rparen token'>)</span>
|
682
|
+
<span class='rubyid_end end kw'>end</span>
|
683
|
+
</pre>
|
684
|
+
</td>
|
685
|
+
</tr>
|
686
|
+
</table>
|
687
|
+
</div>
|
688
|
+
|
689
|
+
<div class="method_details ">
|
690
|
+
<h3 class="signature " id="copy-instance_method">
|
691
|
+
|
692
|
+
- (<tt>Object</tt>) <strong>copy</strong>
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
</h3><div class="docstring">
|
699
|
+
<div class="discussion">
|
700
|
+
<hr style="height: 10px">
|
701
|
+
<hr style="height: 10px">
|
702
|
+
|
703
|
+
|
704
|
+
</div>
|
705
|
+
</div>
|
706
|
+
<div class="tags">
|
707
|
+
|
708
|
+
|
709
|
+
</div><table class="source_code">
|
710
|
+
<tr>
|
711
|
+
<td>
|
712
|
+
<pre class="lines">
|
713
|
+
|
714
|
+
|
715
|
+
61
|
716
|
+
62
|
717
|
+
63</pre>
|
718
|
+
</td>
|
719
|
+
<td>
|
720
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 61</span>
|
721
|
+
|
722
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_copy identifier id'>copy</span>
|
723
|
+
<span class='rubyid_DoubleStatList constant id'>DoubleStatList</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_copy identifier id'>copy</span><span class='rparen token'>)</span>
|
724
|
+
<span class='rubyid_end end kw'>end</span>
|
725
|
+
</pre>
|
726
|
+
</td>
|
727
|
+
</tr>
|
728
|
+
</table>
|
729
|
+
</div>
|
730
|
+
|
731
|
+
<div class="method_details ">
|
732
|
+
<h3 class="signature " id="elements-instance_method">
|
733
|
+
|
734
|
+
- (<tt>Object</tt>) <strong>elements</strong>
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
</h3><div class="docstring">
|
741
|
+
<div class="discussion">
|
742
|
+
<hr style="height: 10px">
|
743
|
+
|
744
|
+
<p>Returns the elements currently stored. Trims the list to the maximum size.</p>
|
745
|
+
<hr style="height: 10px">
|
746
|
+
|
747
|
+
|
748
|
+
</div>
|
749
|
+
</div>
|
750
|
+
<div class="tags">
|
751
|
+
|
752
|
+
|
753
|
+
</div><table class="source_code">
|
754
|
+
<tr>
|
755
|
+
<td>
|
756
|
+
<pre class="lines">
|
757
|
+
|
758
|
+
|
759
|
+
69
|
760
|
+
70
|
761
|
+
71
|
762
|
+
72</pre>
|
763
|
+
</td>
|
764
|
+
<td>
|
765
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 69</span>
|
766
|
+
|
767
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_elements identifier id'>elements</span>
|
768
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_trimToSize identifier id'>trimToSize</span>
|
769
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_elements identifier id'>elements</span><span class='lparen token'>(</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_to_a identifier id'>to_a</span>
|
770
|
+
<span class='rubyid_end end kw'>end</span>
|
771
|
+
</pre>
|
772
|
+
</td>
|
773
|
+
</tr>
|
774
|
+
</table>
|
775
|
+
</div>
|
776
|
+
|
777
|
+
<div class="method_details ">
|
778
|
+
<h3 class="signature " id="get-instance_method">
|
779
|
+
|
780
|
+
- (<tt>Object</tt>) <strong>get</strong>(index)
|
781
|
+
|
782
|
+
|
783
|
+
|
784
|
+
<span class="aliases">Also known as:
|
785
|
+
<span class="names"><span id='[]-instance_method'>[]</span></span>
|
786
|
+
</span>
|
787
|
+
|
788
|
+
|
789
|
+
|
790
|
+
</h3><div class="docstring">
|
791
|
+
<div class="discussion">
|
792
|
+
<hr style="height: 10px">
|
793
|
+
|
794
|
+
<p>Returns the element at the specified position in the receiver.</p>
|
795
|
+
<hr style="height: 10px">
|
796
|
+
|
797
|
+
|
798
|
+
</div>
|
799
|
+
</div>
|
800
|
+
<div class="tags">
|
801
|
+
|
802
|
+
|
803
|
+
</div><table class="source_code">
|
804
|
+
<tr>
|
805
|
+
<td>
|
806
|
+
<pre class="lines">
|
807
|
+
|
808
|
+
|
809
|
+
78
|
810
|
+
79
|
811
|
+
80</pre>
|
812
|
+
</td>
|
813
|
+
<td>
|
814
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 78</span>
|
815
|
+
|
816
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_get identifier id'>get</span><span class='lparen token'>(</span><span class='rubyid_index identifier id'>index</span><span class='rparen token'>)</span>
|
817
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_get identifier id'>get</span><span class='lparen token'>(</span><span class='rubyid_index identifier id'>index</span><span class='rparen token'>)</span>
|
818
|
+
<span class='rubyid_end end kw'>end</span>
|
819
|
+
</pre>
|
820
|
+
</td>
|
821
|
+
</tr>
|
822
|
+
</table>
|
823
|
+
</div>
|
824
|
+
|
825
|
+
<div class="method_details ">
|
826
|
+
<h3 class="signature " id="index_of-instance_method">
|
827
|
+
|
828
|
+
- (<tt>Object</tt>) <strong>index_of</strong>(element, from = 0, to = @array_list.size()-1)
|
829
|
+
|
830
|
+
|
831
|
+
|
832
|
+
|
833
|
+
|
834
|
+
</h3><div class="docstring">
|
835
|
+
<div class="discussion">
|
836
|
+
<hr style="height: 10px">
|
837
|
+
<hr style="height: 10px">
|
838
|
+
|
839
|
+
|
840
|
+
</div>
|
841
|
+
</div>
|
842
|
+
<div class="tags">
|
843
|
+
|
844
|
+
|
845
|
+
</div><table class="source_code">
|
846
|
+
<tr>
|
847
|
+
<td>
|
848
|
+
<pre class="lines">
|
849
|
+
|
850
|
+
|
851
|
+
88
|
852
|
+
89
|
853
|
+
90</pre>
|
854
|
+
</td>
|
855
|
+
<td>
|
856
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 88</span>
|
857
|
+
|
858
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_index_of identifier id'>index_of</span><span class='lparen token'>(</span><span class='rubyid_element identifier id'>element</span><span class='comma token'>,</span> <span class='rubyid_from identifier id'>from</span> <span class='assign token'>=</span> <span class='integer val'>0</span><span class='comma token'>,</span> <span class='rubyid_to identifier id'>to</span> <span class='assign token'>=</span> <span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span><span class='lparen token'>(</span><span class='rparen token'>)</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
|
859
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_indexOfFromTo identifier id'>indexOfFromTo</span><span class='lparen token'>(</span><span class='rubyid_element identifier id'>element</span><span class='comma token'>,</span> <span class='rubyid_from identifier id'>from</span><span class='comma token'>,</span> <span class='rubyid_to identifier id'>to</span><span class='rparen token'>)</span>
|
860
|
+
<span class='rubyid_end end kw'>end</span>
|
861
|
+
</pre>
|
862
|
+
</td>
|
863
|
+
</tr>
|
864
|
+
</table>
|
865
|
+
</div>
|
866
|
+
|
867
|
+
<div class="method_details ">
|
868
|
+
<h3 class="signature " id="last_index_of-instance_method">
|
869
|
+
|
870
|
+
- (<tt>Object</tt>) <strong>last_index_of</strong>(element, from = 0, to = @array_list.size()-1)
|
871
|
+
|
872
|
+
|
873
|
+
|
874
|
+
|
875
|
+
|
876
|
+
</h3><div class="docstring">
|
877
|
+
<div class="discussion">
|
878
|
+
<hr style="height: 10px">
|
879
|
+
<hr style="height: 10px">
|
880
|
+
|
881
|
+
|
882
|
+
</div>
|
883
|
+
</div>
|
884
|
+
<div class="tags">
|
885
|
+
|
886
|
+
|
887
|
+
</div><table class="source_code">
|
888
|
+
<tr>
|
889
|
+
<td>
|
890
|
+
<pre class="lines">
|
891
|
+
|
892
|
+
|
893
|
+
96
|
894
|
+
97
|
895
|
+
98</pre>
|
896
|
+
</td>
|
897
|
+
<td>
|
898
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 96</span>
|
899
|
+
|
900
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_last_index_of identifier id'>last_index_of</span><span class='lparen token'>(</span><span class='rubyid_element identifier id'>element</span><span class='comma token'>,</span> <span class='rubyid_from identifier id'>from</span> <span class='assign token'>=</span> <span class='integer val'>0</span><span class='comma token'>,</span> <span class='rubyid_to identifier id'>to</span> <span class='assign token'>=</span> <span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span><span class='lparen token'>(</span><span class='rparen token'>)</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
|
901
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_lastIndexOfFromTo identifier id'>lastIndexOfFromTo</span><span class='lparen token'>(</span><span class='rubyid_element identifier id'>element</span><span class='comma token'>,</span> <span class='rubyid_from identifier id'>from</span><span class='comma token'>,</span> <span class='rubyid_to identifier id'>to</span><span class='rparen token'>)</span>
|
902
|
+
<span class='rubyid_end end kw'>end</span>
|
903
|
+
</pre>
|
904
|
+
</td>
|
905
|
+
</tr>
|
906
|
+
</table>
|
907
|
+
</div>
|
908
|
+
|
909
|
+
<div class="method_details ">
|
910
|
+
<h3 class="signature " id="print-instance_method">
|
911
|
+
|
912
|
+
- (<tt>Object</tt>) <strong>print</strong>
|
913
|
+
|
914
|
+
|
915
|
+
|
916
|
+
|
917
|
+
|
918
|
+
</h3><div class="docstring">
|
919
|
+
<div class="discussion">
|
920
|
+
<hr style="height: 10px">
|
921
|
+
<hr style="height: 10px">
|
922
|
+
|
923
|
+
|
924
|
+
</div>
|
925
|
+
</div>
|
926
|
+
<div class="tags">
|
927
|
+
|
928
|
+
|
929
|
+
</div><table class="source_code">
|
930
|
+
<tr>
|
931
|
+
<td>
|
932
|
+
<pre class="lines">
|
933
|
+
|
934
|
+
|
935
|
+
138
|
936
|
+
139
|
937
|
+
140</pre>
|
938
|
+
</td>
|
939
|
+
<td>
|
940
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 138</span>
|
941
|
+
|
942
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_print identifier id'>print</span>
|
943
|
+
<span class='rubyid_puts identifier id'>puts</span> <span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_toString identifier id'>toString</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
|
944
|
+
<span class='rubyid_end end kw'>end</span>
|
945
|
+
</pre>
|
946
|
+
</td>
|
947
|
+
</tr>
|
948
|
+
</table>
|
949
|
+
</div>
|
950
|
+
|
951
|
+
<div class="method_details ">
|
952
|
+
<h3 class="signature " id="reverse-instance_method">
|
953
|
+
|
954
|
+
- (<tt>Object</tt>) <strong>reverse</strong>
|
955
|
+
|
956
|
+
|
957
|
+
|
958
|
+
|
959
|
+
|
960
|
+
</h3><div class="docstring">
|
961
|
+
<div class="discussion">
|
962
|
+
<hr style="height: 10px">
|
963
|
+
<hr style="height: 10px">
|
964
|
+
|
965
|
+
|
966
|
+
</div>
|
967
|
+
</div>
|
968
|
+
<div class="tags">
|
969
|
+
|
970
|
+
|
971
|
+
</div><table class="source_code">
|
972
|
+
<tr>
|
973
|
+
<td>
|
974
|
+
<pre class="lines">
|
975
|
+
|
976
|
+
|
977
|
+
104
|
978
|
+
105
|
979
|
+
106</pre>
|
980
|
+
</td>
|
981
|
+
<td>
|
982
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 104</span>
|
983
|
+
|
984
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_reverse identifier id'>reverse</span>
|
985
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_reverse identifier id'>reverse</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
|
986
|
+
<span class='rubyid_end end kw'>end</span>
|
987
|
+
</pre>
|
988
|
+
</td>
|
989
|
+
</tr>
|
990
|
+
</table>
|
991
|
+
</div>
|
992
|
+
|
993
|
+
<div class="method_details ">
|
994
|
+
<h3 class="signature " id="set-instance_method">
|
995
|
+
|
996
|
+
- (<tt>Object</tt>) <strong>set</strong>(index, element)
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
<span class="aliases">Also known as:
|
1001
|
+
<span class="names"><span id='[]=-instance_method'>[]=</span></span>
|
1002
|
+
</span>
|
1003
|
+
|
1004
|
+
|
1005
|
+
|
1006
|
+
</h3><div class="docstring">
|
1007
|
+
<div class="discussion">
|
1008
|
+
<hr style="height: 10px">
|
1009
|
+
<hr style="height: 10px">
|
1010
|
+
|
1011
|
+
|
1012
|
+
</div>
|
1013
|
+
</div>
|
1014
|
+
<div class="tags">
|
1015
|
+
|
1016
|
+
|
1017
|
+
</div><table class="source_code">
|
1018
|
+
<tr>
|
1019
|
+
<td>
|
1020
|
+
<pre class="lines">
|
1021
|
+
|
1022
|
+
|
1023
|
+
112
|
1024
|
+
113
|
1025
|
+
114</pre>
|
1026
|
+
</td>
|
1027
|
+
<td>
|
1028
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 112</span>
|
1029
|
+
|
1030
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_set identifier id'>set</span><span class='lparen token'>(</span><span class='rubyid_index identifier id'>index</span><span class='comma token'>,</span> <span class='rubyid_element identifier id'>element</span><span class='rparen token'>)</span>
|
1031
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_set identifier id'>set</span><span class='lparen token'>(</span><span class='rubyid_index identifier id'>index</span><span class='comma token'>,</span> <span class='rubyid_element identifier id'>element</span><span class='rparen token'>)</span>
|
1032
|
+
<span class='rubyid_end end kw'>end</span>
|
1033
|
+
</pre>
|
1034
|
+
</td>
|
1035
|
+
</tr>
|
1036
|
+
</table>
|
1037
|
+
</div>
|
1038
|
+
|
1039
|
+
<div class="method_details ">
|
1040
|
+
<h3 class="signature " id="shuffle-instance_method">
|
1041
|
+
|
1042
|
+
- (<tt>Object</tt>) <strong>shuffle</strong>(from = 0, to = @array_list.size()-1)
|
1043
|
+
|
1044
|
+
|
1045
|
+
|
1046
|
+
|
1047
|
+
|
1048
|
+
</h3><div class="docstring">
|
1049
|
+
<div class="discussion">
|
1050
|
+
<hr style="height: 10px">
|
1051
|
+
<hr style="height: 10px">
|
1052
|
+
|
1053
|
+
|
1054
|
+
</div>
|
1055
|
+
</div>
|
1056
|
+
<div class="tags">
|
1057
|
+
|
1058
|
+
|
1059
|
+
</div><table class="source_code">
|
1060
|
+
<tr>
|
1061
|
+
<td>
|
1062
|
+
<pre class="lines">
|
1063
|
+
|
1064
|
+
|
1065
|
+
122
|
1066
|
+
123
|
1067
|
+
124</pre>
|
1068
|
+
</td>
|
1069
|
+
<td>
|
1070
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 122</span>
|
1071
|
+
|
1072
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_shuffle identifier id'>shuffle</span><span class='lparen token'>(</span><span class='rubyid_from identifier id'>from</span> <span class='assign token'>=</span> <span class='integer val'>0</span><span class='comma token'>,</span> <span class='rubyid_to identifier id'>to</span> <span class='assign token'>=</span> <span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_size identifier id'>size</span><span class='lparen token'>(</span><span class='rparen token'>)</span> <span class='minus op'>-</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
|
1073
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_shuffleFromTo identifier id'>shuffleFromTo</span><span class='lparen token'>(</span><span class='rubyid_from identifier id'>from</span><span class='comma token'>,</span> <span class='rubyid_to identifier id'>to</span><span class='rparen token'>)</span>
|
1074
|
+
<span class='rubyid_end end kw'>end</span>
|
1075
|
+
</pre>
|
1076
|
+
</td>
|
1077
|
+
</tr>
|
1078
|
+
</table>
|
1079
|
+
</div>
|
1080
|
+
|
1081
|
+
<div class="method_details ">
|
1082
|
+
<h3 class="signature " id="to_s-instance_method">
|
1083
|
+
|
1084
|
+
- (<tt>Object</tt>) <strong>to_s</strong>
|
1085
|
+
|
1086
|
+
|
1087
|
+
|
1088
|
+
|
1089
|
+
|
1090
|
+
</h3><div class="docstring">
|
1091
|
+
<div class="discussion">
|
1092
|
+
<hr style="height: 10px">
|
1093
|
+
<hr style="height: 10px">
|
1094
|
+
|
1095
|
+
|
1096
|
+
</div>
|
1097
|
+
</div>
|
1098
|
+
<div class="tags">
|
1099
|
+
|
1100
|
+
|
1101
|
+
</div><table class="source_code">
|
1102
|
+
<tr>
|
1103
|
+
<td>
|
1104
|
+
<pre class="lines">
|
1105
|
+
|
1106
|
+
|
1107
|
+
146
|
1108
|
+
147
|
1109
|
+
148</pre>
|
1110
|
+
</td>
|
1111
|
+
<td>
|
1112
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 146</span>
|
1113
|
+
|
1114
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_to_s identifier id'>to_s</span>
|
1115
|
+
<span class='rubyid_print identifier id'>print</span>
|
1116
|
+
<span class='rubyid_end end kw'>end</span>
|
1117
|
+
</pre>
|
1118
|
+
</td>
|
1119
|
+
</tr>
|
1120
|
+
</table>
|
1121
|
+
</div>
|
1122
|
+
|
1123
|
+
<div class="method_details ">
|
1124
|
+
<h3 class="signature " id="trim_to_size-instance_method">
|
1125
|
+
|
1126
|
+
- (<tt>Object</tt>) <strong>trim_to_size</strong>
|
1127
|
+
|
1128
|
+
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
1132
|
+
</h3><div class="docstring">
|
1133
|
+
<div class="discussion">
|
1134
|
+
<hr style="height: 10px">
|
1135
|
+
<hr style="height: 10px">
|
1136
|
+
|
1137
|
+
|
1138
|
+
</div>
|
1139
|
+
</div>
|
1140
|
+
<div class="tags">
|
1141
|
+
|
1142
|
+
|
1143
|
+
</div><table class="source_code">
|
1144
|
+
<tr>
|
1145
|
+
<td>
|
1146
|
+
<pre class="lines">
|
1147
|
+
|
1148
|
+
|
1149
|
+
130
|
1150
|
+
131
|
1151
|
+
132</pre>
|
1152
|
+
</td>
|
1153
|
+
<td>
|
1154
|
+
<pre class="code"><span class="info file"># File 'lib/colt/stat_list.rb', line 130</span>
|
1155
|
+
|
1156
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_trim_to_size identifier id'>trim_to_size</span>
|
1157
|
+
<span class='rubyid_@array_list ivar id'>@array_list</span><span class='dot token'>.</span><span class='rubyid_trimToSize identifier id'>trimToSize</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
|
1158
|
+
<span class='rubyid_end end kw'>end</span>
|
1159
|
+
</pre>
|
1160
|
+
</td>
|
1161
|
+
</tr>
|
1162
|
+
</table>
|
1163
|
+
</div>
|
1164
|
+
|
1165
|
+
</div>
|
1166
|
+
|
1167
|
+
</div>
|
1168
|
+
|
1169
|
+
<div id="footer">
|
1170
|
+
Generated on Thu May 16 12:48:37 2013 by
|
1171
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1172
|
+
0.8.5.2 (ruby-1.9.3).
|
1173
|
+
</div>
|
1174
|
+
|
1175
|
+
</body>
|
1176
|
+
</html>
|