narray_miss 0.1.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,38 @@
1
+ 2010-03-24 15:58 mizuta
2
+
3
+ * lib/narray_miss.rb: Wed Mar 24 2010 R Mizuta *
4
+ lib/narray_miss.rb bugfix for methods hton and htov
5
+
6
+ 2009-07-09 10:58 koshiro
7
+
8
+ * lib/narray_miss.rb: Thu Jul 9 2009 T Koshiro *
9
+ lib/narray_miss.rb: (NArrayMiss#[], NArrayMiss#[]=) added
10
+ support for masking with a byte NArrayMiss.
11
+
12
+ 2009-07-02 16:22 horinout
13
+
14
+ * lib/narray_miss.rb: * update for ruby 1.9
15
+
16
+ 2008-08-04 11:29 seiya
17
+
18
+ * lib/narray_miss.rb:
19
+ * bugfix: typo
20
+
21
+ 2008-07-17 15:33 seiya
22
+
23
+ * lib/narray_miss.rb:
24
+ * bugfix
25
+
26
+ 2007-11-05 12:46 seiya
27
+
28
+ * lib/narray_miss.rb:
29
+ * commit patch from Masuo Nakano
30
+
31
+ 2006-03-09 15:06 seiya
32
+
33
+ * lib/narray_miss.rb:
34
+ change routine1 to not change original arrays for calculation
35
+
1
36
  2005-08-25 11:00 seiya
2
37
 
3
38
  * lib/narray_miss.rb:
@@ -0,0 +1,469 @@
1
+ <?xml version="1.0" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml">
6
+ <head>
7
+ <title>../lib/narray_miss.rb</title>
8
+ </head>
9
+ <body>
10
+ <h1><a name="label-0" id="label-0">NArrayMiss Class</a></h1><!-- RDLabel: "NArrayMiss Class" -->
11
+ <p>NArrayMiss is a additional class processing of missing value with to
12
+ <a href="http://www.ruby-lang.org/en/raa-list.rhtml?name=NArray">NArray</a>
13
+ for Ruby.</p>
14
+ <p>To use NArrayMiss class, you need invoking "require 'narray_miss.rb'" in your script.</p>
15
+ <h2><a name="label-1" id="label-1">Index</a></h2><!-- RDLabel: "Index" -->
16
+ <ul>
17
+ <li><a href="#label-2">Class Constants</a></li>
18
+ <li><a href="#label-11">Class Methods</a></li>
19
+ <li><a href="#label-24">Class Instance Methods</a>
20
+ <ul>
21
+ <li><a href="#label-25">NArrayMiss information</a></li>
22
+ <li><a href="#label-34">Slicing Array</a></li>
23
+ <li><a href="#label-39">Filling values</a></li>
24
+ <li><a href="#label-47">Arithmetic operator</a></li>
25
+ <li><a href="#label-62">Bitwise operator</a></li>
26
+ <li><a href="#label-67">Comparison</a></li>
27
+ <li><a href="#label-82">Statistics</a></li>
28
+ <li><a href="#label-90">Sort</a></li>
29
+ <li><a href="#label-93">Transpose</a></li>
30
+ <li><a href="#label-95">Changing Shapes of indices</a></li>
31
+ <li><a href="#label-103">Type conversion</a></li>
32
+ <li><a href="#label-115">Iteration</a></li>
33
+ <li><a href="#label-121">Boolean and mask related</a></li>
34
+ <li><a href="#label-130">Complex compound number</a></li>
35
+ <li><a href="#label-137">Byte swap</a></li>
36
+ <li><a href="#label-143">Mask and missing value</a></li>
37
+ <li><a href="#label-163">Others</a></li>
38
+ </ul></li>
39
+ </ul>
40
+ <h2><a name="label-2" id="label-2">Class Constants</a></h2><!-- RDLabel: "Class Constants" -->
41
+ <dl>
42
+ <dt><a name="label-3" id="label-3"><code>NArrayMiss::BYTE</code></a></dt><!-- RDLabel: "NArrayMiss::BYTE" -->
43
+ <dd>
44
+ type code for 1 byte unsigned integer.</dd>
45
+ <dt><a name="label-4" id="label-4"><code>NArrayMiss::SINT</code></a></dt><!-- RDLabel: "NArrayMiss::SINT" -->
46
+ <dd>
47
+ type code for 2 byte signed integer.</dd>
48
+ <dt><a name="label-5" id="label-5"><code>NArrayMiss::INT</code></a></dt><!-- RDLabel: "NArrayMiss::INT" -->
49
+ <dd>
50
+ type code for 4 byte signed integer.</dd>
51
+ <dt><a name="label-6" id="label-6"><code>NArrayMiss::SFLOAT</code></a></dt><!-- RDLabel: "NArrayMiss::SFLOAT" -->
52
+ <dd>
53
+ type code for single precision float.</dd>
54
+ <dt><a name="label-7" id="label-7"><code>NArrayMiss::FLOAT</code></a></dt><!-- RDLabel: "NArrayMiss::FLOAT" -->
55
+ <dd>
56
+ type code for double precision float.</dd>
57
+ <dt><a name="label-8" id="label-8"><code>NArrayMiss::SCOMPLEX</code></a></dt><!-- RDLabel: "NArrayMiss::SCOMPLEX" -->
58
+ <dd>
59
+ type code for single precision complex.</dd>
60
+ <dt><a name="label-9" id="label-9"><code>NArrayMiss::COMPLEX</code></a></dt><!-- RDLabel: "NArrayMiss::COMPLEX" -->
61
+ <dd>
62
+ type code for double precision complex.</dd>
63
+ <dt><a name="label-10" id="label-10"><code>NArrayMiss::OBJECT</code></a></dt><!-- RDLabel: "NArrayMiss::OBJECT" -->
64
+ <dd>
65
+ type code for Ruby object.</dd>
66
+ </dl>
67
+ <p>go back to <a href="#label-1">Index</a></p>
68
+ <h2><a name="label-11" id="label-11">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
69
+ <dl>
70
+ <dt><a name="label-12" id="label-12"><code>NArrayMiss.new(<var>typecode</var>, <var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss.new" -->
71
+ <dd>
72
+ create <code>NArrayMiss</code> of <var>typecode</var>.
73
+ All elements are initialized with 0.</dd>
74
+ <dt><a name="label-13" id="label-13"><code>NArrayMiss.byte(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss.byte" -->
75
+ <dd>
76
+ same as NArrayMiss.new(NArrayMiss::BYTE, <var>size</var>, ...).</dd>
77
+ <dt><a name="label-14" id="label-14"><code>NArrayMiss.sint(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss.sint" -->
78
+ <dd>
79
+ same as NArrayMiss.new(NArrayMiss::SINT, <var>size</var>, ...).</dd>
80
+ <dt><a name="label-15" id="label-15"><code>NArrayMiss.int(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss.int" -->
81
+ <dd>
82
+ same as NArrayMiss.new(NArrayMiss::INT, <var>size</var>, ...).</dd>
83
+ <dt><a name="label-16" id="label-16"><code>NArrayMiss.sfloat(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss.sfloat" -->
84
+ <dd>
85
+ same as NArrayMiss.new(NArrayMiss::SFLOAT, <var>size</var>, ...).</dd>
86
+ <dt><a name="label-17" id="label-17"><code>NArrayMiss.float(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss.float" -->
87
+ <dd>
88
+ same as NArrayMiss.new(NArrayMiss::FLOAT, <var>size</var>, ...).</dd>
89
+ <dt><a name="label-18" id="label-18"><code>NArrayMiss.scomplex(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss.scomplex" -->
90
+ <dd>
91
+ same as NArrayMiss.new(NArrayMiss::SCOMPLEX, <var>size</var>, ...).</dd>
92
+ <dt><a name="label-19" id="label-19"><code>NArrayMiss.complex(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss.complex" -->
93
+ <dd>
94
+ same as NArrayMiss.new(NArrayMiss::COMPLEX, <var>size</var>, ...).</dd>
95
+ <dt><a name="label-20" id="label-20"><code>NArrayMiss.object(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss.object" -->
96
+ <dd>
97
+ same as NArrayMiss.new(NArrayMiss::OBJECT, <var>size</var>, ...).</dd>
98
+ <dt><a name="label-21" id="label-21"><code>NArrayMiss[](<var>value</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss[]" -->
99
+ <dd>
100
+ create <code>NArrayMiss</code> form [<var>value</var>, ...].</dd>
101
+ <dt><a name="label-22" id="label-22"><code>NArrayMiss.to_nam(<var>array</var> [,<var>mask</var>])</code></a></dt><!-- RDLabel: "NArrayMiss.to_nam" -->
102
+ <dd>
103
+ create <code>NArrayMiss</code> from <var>array</var>.
104
+ <var>array</var> must be <code>Numeric</code> <code>Array</code> or <code>NArray</code>.</dd>
105
+ <dt><a name="label-23" id="label-23"><code>NArrayMiss.to_nam_no_dup(<var>array</var> [,<var>mask</var>])</code></a></dt><!-- RDLabel: "NArrayMiss.to_nam_no_dup" -->
106
+ <dd>
107
+ convert from <var>array</var> to <code>NArrayMiss</code>.</dd>
108
+ </dl>
109
+ <p>go back to <a href="#label-1">Index</a></p>
110
+ <h2><a name="label-24" id="label-24">Class Instance Methods</a></h2><!-- RDLabel: "Class Instance Methods" -->
111
+ <h3><a name="label-25" id="label-25">NArrayMiss information</a></h3><!-- RDLabel: "NArrayMiss information" -->
112
+ <dl>
113
+ <dt><a name="label-26" id="label-26"><code>NArrayMiss#dim</code></a></dt><!-- RDLabel: "NArrayMiss#dim" -->
114
+ <dd>
115
+ return the dimension which is the number of indices.</dd>
116
+ <dt><a name="label-27" id="label-27"><code>NArrayMiss#rank</code></a></dt><!-- RDLabel: "NArrayMiss#rank" -->
117
+ <dd>
118
+ same as <code>NArrayMiss#dim</code>.</dd>
119
+ <dt><a name="label-28" id="label-28"><code>NArrayMiss#shape</code></a></dt><!-- RDLabel: "NArrayMiss#shape" -->
120
+ <dd>
121
+ return the <code>Array</code> of sizes of each index.</dd>
122
+ <dt><a name="label-29" id="label-29"><code>NArrayMiss#size</code></a></dt><!-- RDLabel: "NArrayMiss#size" -->
123
+ <dd>
124
+ return the number of total elements.</dd>
125
+ <dt><a name="label-30" id="label-30"><code>NArrayMiss#total</code></a></dt><!-- RDLabel: "NArrayMiss#total" -->
126
+ <dd>
127
+ alias to size</dd>
128
+ <dt><a name="label-31" id="label-31"><code>NArrayMiss#length</code></a></dt><!-- RDLabel: "NArrayMiss#length" -->
129
+ <dd>
130
+ alias to size</dd>
131
+ <dt><a name="label-32" id="label-32"><code>NArrayMiss#rank_total</code></a></dt><!-- RDLabel: "NArrayMiss#rank_total" -->
132
+ <dd>
133
+ return the number of total of the shape.</dd>
134
+ <dt><a name="label-33" id="label-33"><code>NArrayMiss#typecode</code></a></dt><!-- RDLabel: "NArrayMiss#typecode" -->
135
+ <dd>
136
+ return the typecode.</dd>
137
+ </dl>
138
+ <h3><a name="label-34" id="label-34">Slicing Array</a></h3><!-- RDLabel: "Slicing Array" -->
139
+ <dl>
140
+ <dt><a name="label-35" id="label-35"><code>NArrayMiss#[<var>index</var>]</code></a></dt><!-- RDLabel: "NArrayMiss#[]" -->
141
+ <dd>
142
+ return the value at [<var>index</var>].
143
+ <var>index</var> must be <code>Integer, Range, Array, true</code>.
144
+ Index order is FORTRAN type.</dd>
145
+ <dt><a name="label-36" id="label-36"><code>NArrayMiss#slice(<var>index</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#slice" -->
146
+ <dd>
147
+ same as <code>NArrayMiss#[]</code> but keeps the rank of original array by not elimiting dimensions whose length became equal to 1 (which <code>NArrayMiss#[]</code> dose).
148
+ This is not the case with the 1-dimensional indexing and masking.</dd>
149
+ <dt><a name="label-37" id="label-37"><code>NArrayMiss#set_without_validation(<var>index</var>,<var>value</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#set_without_validation" -->
150
+ <dd>
151
+ replace elements at <var>index</var> by <var>value</var>.</dd>
152
+ <dt><a name="label-38" id="label-38"><code>NArrayMiss#[<var>index</var>] = <var>value</var></code></a></dt><!-- RDLabel: "NArrayMiss#[]=" -->
153
+ <dd>
154
+ replace elements at <var>index</var> by <var>value</var> and
155
+ make replaced elements valid. </dd>
156
+ </dl>
157
+ <h3><a name="label-39" id="label-39">Filling values</a></h3><!-- RDLabel: "Filling values" -->
158
+ <dl>
159
+ <dt><a name="label-40" id="label-40"><code>NArrayMiss#indgen!([<var>start</var>[,<var>step</var>]])</code></a></dt><!-- RDLabel: "NArrayMiss#indgen!" -->
160
+ <dd>
161
+ set values from <var>start</var> with <var>step</var> increment.</dd>
162
+ <dt><a name="label-41" id="label-41"><code>NArrayMiss#indgen([<var>start</var>[,<var>step</var>]])</code></a></dt><!-- RDLabel: "NArrayMiss#indgen" -->
163
+ <dd>
164
+ same as <code>NArrayMiss#indgen!</code> but create new object.</dd>
165
+ <dt><a name="label-42" id="label-42"><code>NArrayMiss#fill!(<var>value</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#fill!" -->
166
+ <dd>
167
+ fill elements with <var>value</var>.</dd>
168
+ <dt><a name="label-43" id="label-43"><code>NArrayMiss#fill(<var>value</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#fill" -->
169
+ <dd>
170
+ same as <code>NArrayMiss#fill!</code> but create new object.</dd>
171
+ <dt><a name="label-44" id="label-44"><code>NArrayMiss#random!(<var>max</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#random!" -->
172
+ <dd>
173
+ set random values between 0&lt;=x&lt;<var>max</var>.</dd>
174
+ <dt><a name="label-45" id="label-45"><code>NArrayMiss#random(<var>max</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#random" -->
175
+ <dd>
176
+ same as <code>NArrayMiss#random!</code> but create new object.</dd>
177
+ <dt><a name="label-46" id="label-46"><code>NArrayMiss#randomn(<var>max</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#randomn" -->
178
+ <dd>
179
+ set normally distributed random values with mean=0, dispersion=1 (Box-Muller)</dd>
180
+ </dl>
181
+ <h3><a name="label-47" id="label-47">Arithmetic operator</a></h3><!-- RDLabel: "Arithmetic operator" -->
182
+ <dl>
183
+ <dt><a name="label-48" id="label-48"><code>NArrayMiss#-@</code></a></dt><!-- RDLabel: "NArrayMiss#-@" -->
184
+ <dt><a name="label-49" id="label-49"><code>NArrayMiss#+(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#+" -->
185
+ <dt><a name="label-50" id="label-50"><code>NArrayMiss#-(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#-" -->
186
+ <dt><a name="label-51" id="label-51"><code>NArrayMiss#*(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#*" -->
187
+ <dt><a name="label-52" id="label-52"><code>NArrayMiss#/(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#/" -->
188
+ <dt><a name="label-53" id="label-53"><code>NArrayMiss#%(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#%" -->
189
+ <dt><a name="label-54" id="label-54"><code>NArrayMiss#**(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#**" -->
190
+ <dt><a name="label-55" id="label-55"><code>NArrayMiss#abs</code></a></dt><!-- RDLabel: "NArrayMiss#abs" -->
191
+ <dt><a name="label-56" id="label-56"><code>NArrayMiss#add!(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#add!" -->
192
+ <dt><a name="label-57" id="label-57"><code>NArrayMiss#sbt!(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#sbt!" -->
193
+ <dt><a name="label-58" id="label-58"><code>NArrayMiss#mul!(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#mul!" -->
194
+ <dt><a name="label-59" id="label-59"><code>NArrayMiss#div!(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#div!" -->
195
+ <dt><a name="label-60" id="label-60"><code>NArrayMiss#mod!(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#mod!" -->
196
+ <dt><a name="label-61" id="label-61"><code>NArrayMiss#mul_add(<var>other</var>, <var>dim</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#mul_add" -->
197
+ </dl>
198
+ <h3><a name="label-62" id="label-62">Bitwise operator (only for byte, sint and int)</a></h3><!-- RDLabel: "Bitwise operator (only for byte, sint and int)" -->
199
+ <dl>
200
+ <dt><a name="label-63" id="label-63"><code>NArrayMiss#~@</code></a></dt><!-- RDLabel: "NArrayMiss#~@" -->
201
+ <dt><a name="label-64" id="label-64"><code>NArrayMiss#&amp;(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#&" -->
202
+ <dt><a name="label-65" id="label-65"><code>NArrayMiss#|(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#|" -->
203
+ <dt><a name="label-66" id="label-66"><code>NArrayMiss#^(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#^" -->
204
+ </dl>
205
+ <h3><a name="label-67" id="label-67">Comparison</a></h3><!-- RDLabel: "Comparison" -->
206
+ <dl>
207
+ <dt><a name="label-68" id="label-68"><code>NArrayMiss#eq(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#eq" -->
208
+ <dt><a name="label-69" id="label-69"><code>NArrayMiss#ne(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#ne" -->
209
+ <dt><a name="label-70" id="label-70"><code>NArrayMiss#gt(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#gt" -->
210
+ <dt><a name="label-71" id="label-71"><code>NArrayMiss#ge(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#ge" -->
211
+ <dt><a name="label-72" id="label-72"><code>NArrayMiss#lt(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#lt" -->
212
+ <dt><a name="label-73" id="label-73"><code>NArrayMiss#le(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#le" -->
213
+ <dt><a name="label-74" id="label-74"><code>NArrayMiss#&gt;(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#>" -->
214
+ <dt><a name="label-75" id="label-75"><code>NArrayMiss#&gt;=(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#>=" -->
215
+ <dt><a name="label-76" id="label-76"><code>NArrayMiss#&lt;(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#<" -->
216
+ <dt><a name="label-77" id="label-77"><code>NArrayMiss#&lt;=(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#<=" -->
217
+ <dt><a name="label-78" id="label-78"><code>NArrayMiss#and(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#and" -->
218
+ <dt><a name="label-79" id="label-79"><code>NArrayMiss#or(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#or" -->
219
+ <dt><a name="label-80" id="label-80"><code>NArrayMiss#xor(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#xor" -->
220
+ <dt><a name="label-81" id="label-81"><code>NArrayMiss#not(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#not" -->
221
+ </dl>
222
+ <h3><a name="label-82" id="label-82">Statistics</a></h3><!-- RDLabel: "Statistics" -->
223
+ <dl>
224
+ <dt><a name="label-83" id="label-83"><code>NArrayMiss#sum(<var>dim</var>, ... ["<var>min_count</var>"=&gt;<var>i</var>])</code></a></dt><!-- RDLabel: "NArrayMiss#sum" -->
225
+ <dd>
226
+ return summation of elements in specified dimensions.
227
+ Elements at which the number of elements for summation is less than <var>i</var> is invalid.</dd>
228
+ <dt><a name="label-84" id="label-84"><code>NArrayMiss#accum(<var>dim</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#accum" -->
229
+ <dd>
230
+ same as <code>NArrayMiss#sum</code> but not elimiting dimensions whose length became equal to 1.</dd>
231
+ <dt><a name="label-85" id="label-85"><code>NArrayMiss#min(<var>dim</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#min" -->
232
+ <dd>
233
+ return minimum in specified dimensions.
234
+ Elements at which the number of valid elements in the dimension is less than <var>i</var> is invalid.</dd>
235
+ <dt><a name="label-86" id="label-86"><code>NArrayMiss#max(<var>dim</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#max" -->
236
+ <dd>
237
+ return maximum in specified dimensions.
238
+ Elements at which the number of valid elements in the dimension is less than <var>i</var> is invalid.</dd>
239
+ <dt><a name="label-87" id="label-87"><code>NArrayMiss#median(<var>dim</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#median" -->
240
+ <dd>
241
+ return median in specified dimensions.
242
+ Elements at which the number of valid elements in the dimension is less than <var>i</var> is invalid.</dd>
243
+ <dt><a name="label-88" id="label-88"><code>NArrayMiss#mean(<var>dim</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#mean" -->
244
+ <dd>
245
+ return mean of elements in specified dimensions.
246
+ Elements at which the number of elements for then mean is less than <var>i</var> is invalid.</dd>
247
+ <dt><a name="label-89" id="label-89"><code>NArrayMiss#stddev(<var>dim</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#stddev" -->
248
+ <dd>
249
+ return standard deviation of elements in specified dimensions.
250
+ Elements at which the number of elements for calculation the standard deviation is less than <var>i</var> is invalid.</dd>
251
+ </dl>
252
+ <h3><a name="label-90" id="label-90">Sort</a></h3><!-- RDLabel: "Sort" -->
253
+ <dl>
254
+ <dt><a name="label-91" id="label-91"><code>NArrayMiss#sort(<var>dim</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#sort" -->
255
+ <dd>
256
+ sort in the 0..<var>dim</var> (All dimensions if omitted)</dd>
257
+ <dt><a name="label-92" id="label-92"><code>NArrayMiss#sort_index(<var>dim</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#sort_index" -->
258
+ <dd>
259
+ return index of sort result.</dd>
260
+ </dl>
261
+ <h3><a name="label-93" id="label-93">Transpose</a></h3><!-- RDLabel: "Transpose" -->
262
+ <dl>
263
+ <dt><a name="label-94" id="label-94"><code>NArrayMiss#transpose(<var>dim0</var>, <var>dim1</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#transpose" -->
264
+ <dd>
265
+ transpose array. The 0-th dimension goes to the <var>dim0</var>-th dimension of new array.</dd>
266
+ </dl>
267
+ <h3><a name="label-95" id="label-95">Changing Shapes of indices</a></h3><!-- RDLabel: "Changing Shapes of indices" -->
268
+ <dl>
269
+ <dt><a name="label-96" id="label-96"><code>NArrayMiss#reshape!(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#reshape!" -->
270
+ <dd>
271
+ change shape of array.</dd>
272
+ <dt><a name="label-97" id="label-97"><code>NArrayMiss#reshape(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#reshape" -->
273
+ <dd>
274
+ same as <code>NArrayMiss#reshape!</code> but create new object.</dd>
275
+ <dt><a name="label-98" id="label-98"><code>NArrayMiss#shape=(<var>size</var>, ...)</code></a></dt><!-- RDLabel: "NArrayMiss#shape=" -->
276
+ <dd>
277
+ same as <code>NArrayMiss#reshape!</code>.</dd>
278
+ <dt><a name="label-99" id="label-99"><code>NArrayMiss#newdim!(<var>dim</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#newdim!" -->
279
+ <dd>
280
+ insert new dimension with size=1</dd>
281
+ <dt><a name="label-100" id="label-100"><code>NArrayMiss#newdim(<var>dim</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#newdim" -->
282
+ <dd>
283
+ same as <code>NArrayMiss#newdim!</code> but create new object.</dd>
284
+ <dt><a name="label-101" id="label-101"><code>NArrayMiss#rewrank!(<var>dim</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#rewrank!" -->
285
+ <dd>
286
+ same as <code>NArrayMiss#newdim!</code>.</dd>
287
+ <dt><a name="label-102" id="label-102"><code>NArrayMiss#rewrank=(<var>dim</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#rewrank=" -->
288
+ <dd>
289
+ same as <code>NArrayMiss#newdim!</code>.</dd>
290
+ </dl>
291
+ <h3><a name="label-103" id="label-103">Type conversion</a></h3><!-- RDLabel: "Type conversion" -->
292
+ <dl>
293
+ <dt><a name="label-104" id="label-104"><code>NArrayMiss#floor</code></a></dt><!-- RDLabel: "NArrayMiss#floor" -->
294
+ <dd>
295
+ return <code>NArrayMiss</code> of integer whose elements processed <code>floor</code>.</dd>
296
+ <dt><a name="label-105" id="label-105"><code>NArrayMiss#ceil</code></a></dt><!-- RDLabel: "NArrayMiss#ceil" -->
297
+ <dd>
298
+ return <code>NArrayMiss</code> of integer whose elements processed <code>ceil</code>.</dd>
299
+ <dt><a name="label-106" id="label-106"><code>NArrayMiss#round</code></a></dt><!-- RDLabel: "NArrayMiss#round" -->
300
+ <dd>
301
+ return <code>NArrayMiss</code> of integer whose elements processed <code>round</code>.</dd>
302
+ <dt><a name="label-107" id="label-107"><code>NArrayMiss#to_i</code></a></dt><!-- RDLabel: "NArrayMiss#to_i" -->
303
+ <dd>
304
+ return <code>NArrayMiss</code> of integer whose elements processed <code>to_i</code>.</dd>
305
+ <dt><a name="label-108" id="label-108"><code>NArrayMiss#to_f</code></a></dt><!-- RDLabel: "NArrayMiss#to_f" -->
306
+ <dd>
307
+ return <code>NArrayMiss</code> of float whose elements processed <code>to_f</code>.</dd>
308
+ <dt><a name="label-109" id="label-109"><code>NArrayMiss#to_type(<var>typecode</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#to_type" -->
309
+ <dd>
310
+ return <code>NArrayMiss</code> of <var>typecode</var>.</dd>
311
+ <dt><a name="label-110" id="label-110"><code>NArrayMiss#to_a</code></a></dt><!-- RDLabel: "NArrayMiss#to_a" -->
312
+ <dd>
313
+ convert <code>NArrayMiss</code> to <code>Array</code>.</dd>
314
+ <dt><a name="label-111" id="label-111"><code>NArrayMiss#to_na!([<var>missing_value</var>])</code></a></dt><!-- RDLabel: "NArrayMiss#to_na!" -->
315
+ <dd>
316
+ convert <code>NArrayMiss</code> to <code>NArray</code>.
317
+ if there is argument, set missing_value for invalid elements.</dd>
318
+ <dt><a name="label-112" id="label-112"><code>NArrayMiss#to_na([<var>missing_value</var>])</code></a></dt><!-- RDLabel: "NArrayMiss#to_na" -->
319
+ <dd>
320
+ convert <code>NArrayMiss</code> to <code>NArray</code>.
321
+ if there is argument, set missing_value for invalid elements.</dd>
322
+ <dt><a name="label-113" id="label-113"><code>NArrayMiss#to_s</code></a></dt><!-- RDLabel: "NArrayMiss#to_s" -->
323
+ <dd>
324
+ convert <code>NArrayMiss</code> to <code>String</code> as a binary data.</dd>
325
+ <dt><a name="label-114" id="label-114"><code>NArrayMiss#to_string</code></a></dt><!-- RDLabel: "NArrayMiss#to_string" -->
326
+ <dd>
327
+ create <code>NArrayMiss</code> of object whose elements are processed <code>to_s</code></dd>
328
+ </dl>
329
+ <h3><a name="label-115" id="label-115">Iteration</a></h3><!-- RDLabel: "Iteration" -->
330
+ <dl>
331
+ <dt><a name="label-116" id="label-116"><code>NArrayMiss#each{|<var>x</var>| ...}</code></a></dt><!-- RDLabel: "NArrayMiss#each" -->
332
+ <dt><a name="label-117" id="label-117"><code>NArrayMiss#each_valid{|<var>x</var>| ...}</code></a></dt><!-- RDLabel: "NArrayMiss#each_valid" -->
333
+ <dt><a name="label-118" id="label-118"><code>NArrayMiss#each_valid_with_index{|<var>x</var>,<var>i</var>| ...}</code></a></dt><!-- RDLabel: "NArrayMiss#each_valid_with_index" -->
334
+ <dt><a name="label-119" id="label-119"><code>NArrayMiss#collect{|<var>x</var>| ...}</code></a></dt><!-- RDLabel: "NArrayMiss#collect" -->
335
+ <dt><a name="label-120" id="label-120"><code>NArrayMiss#collect!{|<var>x</var>| ...}</code></a></dt><!-- RDLabel: "NArrayMiss#collect!" -->
336
+ </dl>
337
+ <h3><a name="label-121" id="label-121">Boolean and mask related (only for byte, sint and int)</a></h3><!-- RDLabel: "Boolean and mask related (only for byte, sint and int)" -->
338
+ <dl>
339
+ <dt><a name="label-122" id="label-122"><code>NArrayMiss#count_false</code></a></dt><!-- RDLabel: "NArrayMiss#count_false" -->
340
+ <dd>
341
+ return the number of elements whose value==0 and valid.</dd>
342
+ <dt><a name="label-123" id="label-123"><code>NArrayMiss#count_true</code></a></dt><!-- RDLabel: "NArrayMiss#count_true" -->
343
+ <dd>
344
+ return the number of elements whose value!=0 and valid.</dd>
345
+ <dt><a name="label-124" id="label-124"><code>NArrayMiss#mask(<var>mask</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#mask" -->
346
+ <dd>
347
+ return <code>NArrayMiss#get_mask!&amp;<var>mask</var></code>.</dd>
348
+ <dt><a name="label-125" id="label-125"><code>NArrayMiss#all?</code></a></dt><!-- RDLabel: "NArrayMiss#all?" -->
349
+ <dd>
350
+ return true if all the valid elements are not 0, else false.</dd>
351
+ <dt><a name="label-126" id="label-126"><code>NArrayMiss#any?</code></a></dt><!-- RDLabel: "NArrayMiss#any?" -->
352
+ <dd>
353
+ return true if any valid element is not 0, else false.</dd>
354
+ <dt><a name="label-127" id="label-127"><code>NArrayMiss#none?</code></a></dt><!-- RDLabel: "NArrayMiss#none?" -->
355
+ <dd>
356
+ return true if none of the valid elements is not 0, else false.</dd>
357
+ <dt><a name="label-128" id="label-128"><code>NArrayMiss#where</code></a></dt><!-- RDLabel: "NArrayMiss#where" -->
358
+ <dd>
359
+ return <code>NArray</code> of indices where valid elements are not 0.</dd>
360
+ <dt><a name="label-129" id="label-129"><code>NArrayMiss#where2</code></a></dt><!-- RDLabel: "NArrayMiss#where2" -->
361
+ <dd>
362
+ return <code>Array</code> including two <code>NArray</code>s of indices,
363
+ where valid elements are not 0, and 0, respectively.</dd>
364
+ </dl>
365
+ <h3><a name="label-130" id="label-130">Complex compound number (only for scomplex and complex)</a></h3><!-- RDLabel: "Complex compound number (only for scomplex and complex)" -->
366
+ <dl>
367
+ <dt><a name="label-131" id="label-131"><code>NArrayMiss#real</code></a></dt><!-- RDLabel: "NArrayMiss#real" -->
368
+ <dt><a name="label-132" id="label-132"><code>NArrayMiss#imag</code></a></dt><!-- RDLabel: "NArrayMiss#imag" -->
369
+ <dt><a name="label-133" id="label-133"><code>NArrayMiss#conj</code></a></dt><!-- RDLabel: "NArrayMiss#conj" -->
370
+ <dt><a name="label-134" id="label-134"><code>NArrayMiss#angle</code></a></dt><!-- RDLabel: "NArrayMiss#angle" -->
371
+ <dt><a name="label-135" id="label-135"><code>NArrayMiss#imag=(<var>other</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#imag=" -->
372
+ <dt><a name="label-136" id="label-136"><code>NArrayMiss#im</code></a></dt><!-- RDLabel: "NArrayMiss#im" -->
373
+ </dl>
374
+ <h3><a name="label-137" id="label-137">Byte swap</a></h3><!-- RDLabel: "Byte swap" -->
375
+ <dl>
376
+ <dt><a name="label-138" id="label-138"><code>NArrayMiss#swap_byte</code></a></dt><!-- RDLabel: "NArrayMiss#swap_byte" -->
377
+ <dd>
378
+ swap byte order.</dd>
379
+ <dt><a name="label-139" id="label-139"><code>NArrayMiss#hton</code></a></dt><!-- RDLabel: "NArrayMiss#hton" -->
380
+ <dd>
381
+ convert to network byte order.</dd>
382
+ <dt><a name="label-140" id="label-140"><code>NArrayMiss#ntoh</code></a></dt><!-- RDLabel: "NArrayMiss#ntoh" -->
383
+ <dd>
384
+ convert from network byte order.</dd>
385
+ <dt><a name="label-141" id="label-141"><code>NArrayMiss#htov</code></a></dt><!-- RDLabel: "NArrayMiss#htov" -->
386
+ <dd>
387
+ convert to VAX byte order.</dd>
388
+ <dt><a name="label-142" id="label-142"><code>NArrayMiss#vtoh</code></a></dt><!-- RDLabel: "NArrayMiss#vtoh" -->
389
+ <dd>
390
+ convert from VAX byte order.</dd>
391
+ </dl>
392
+ <h3><a name="label-143" id="label-143">Mask and missing value</a></h3><!-- RDLabel: "Mask and missing value" -->
393
+ <dl>
394
+ <dt><a name="label-144" id="label-144"><code>NArrayMiss#set_valid(<var>index</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#set_valid" -->
395
+ <dd>
396
+ validate element at <var>index</var>.
397
+ <var>index</var> must be <code>Integer, Range, Array, or ture</code>.</dd>
398
+ <dt><a name="label-145" id="label-145"><code>NArrayMiss#validation(<var>index</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#validation" -->
399
+ <dd>
400
+ alias to set_valid</dd>
401
+ <dt><a name="label-146" id="label-146"><code>NArrayMiss#set_invalid(<var>index</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#set_invalid" -->
402
+ <dd>
403
+ invaliadate element at <var>index</var>.
404
+ <var>index</var> must be <code>Integer, Range, Array, or ture</code>.</dd>
405
+ <dt><a name="label-147" id="label-147"><code>NArrayMiss#invalidation(<var>index</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#invalidation" -->
406
+ <dd>
407
+ alias to set_invalid</dd>
408
+ <dt><a name="label-148" id="label-148"><code>NArrayMiss#all_valid</code></a></dt><!-- RDLabel: "NArrayMiss#all_valid" -->
409
+ <dd>
410
+ set all elements valid</dd>
411
+ <dt><a name="label-149" id="label-149"><code>NArrayMiss#all_invalid</code></a></dt><!-- RDLabel: "NArrayMiss#all_invalid" -->
412
+ <dd>
413
+ set all elements invalid</dd>
414
+ <dt><a name="label-150" id="label-150"><code>NArrayMiss#set_mask(<var>mask</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#set_mask" -->
415
+ <dd>
416
+ masking by <var>mask</var></dd>
417
+ <dt><a name="label-151" id="label-151"><code>NArrayMiss#set_missing_value(<var>value</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#set_missing_value" -->
418
+ <dd>
419
+ replace invalid elements by <var>value</var>.</dd>
420
+ <dt><a name="label-152" id="label-152"><code>NArrayMiss#get_mask!</code></a></dt><!-- RDLabel: "NArrayMiss#get_mask!" -->
421
+ <dd>
422
+ return <code>NArray</code> of byte as mask.</dd>
423
+ <dt><a name="label-153" id="label-153"><code>NArrayMiss#get_mask</code></a></dt><!-- RDLabel: "NArrayMiss#get_mask" -->
424
+ <dd>
425
+ return <code>NArray</code> of byte as mask.</dd>
426
+ <dt><a name="label-154" id="label-154"><code>NArrayMiss#get_array!</code></a></dt><!-- RDLabel: "NArrayMiss#get_array!" -->
427
+ <dd>
428
+ return <code>NArray</code> as data.</dd>
429
+ <dt><a name="label-155" id="label-155"><code>NArrayMiss#get_array</code></a></dt><!-- RDLabel: "NArrayMiss#get_array" -->
430
+ <dd>
431
+ return <code>NArray</code> as data.</dd>
432
+ <dt><a name="label-156" id="label-156"><code>NArrayMiss#valid?</code></a></dt><!-- RDLabel: "NArrayMiss#valid?" -->
433
+ <dd>
434
+ return <code>Array</code> whose elements are true or false corresponding to valid or invalid of elements, respectively.</dd>
435
+ <dt><a name="label-157" id="label-157"><code>NArrayMiss#all_valid?</code></a></dt><!-- RDLabel: "NArrayMiss#all_valid?" -->
436
+ <dd>
437
+ return true if all elements are valid, else false.</dd>
438
+ <dt><a name="label-158" id="label-158"><code>NArrayMiss#none_valid?</code></a></dt><!-- RDLabel: "NArrayMiss#none_valid?" -->
439
+ <dd>
440
+ return true if all elements are invalid, else false.</dd>
441
+ <dt><a name="label-159" id="label-159"><code>NArrayMiss#all_invalid?</code></a></dt><!-- RDLabel: "NArrayMiss#all_invalid?" -->
442
+ <dd>
443
+ alias to none_valid?</dd>
444
+ <dt><a name="label-160" id="label-160"><code>NArrayMiss#any_valid?</code></a></dt><!-- RDLabel: "NArrayMiss#any_valid?" -->
445
+ <dd>
446
+ return true if any elements are valid, else false.</dd>
447
+ <dt><a name="label-161" id="label-161"><code>NArrayMiss#count_valid</code></a></dt><!-- RDLabel: "NArrayMiss#count_valid" -->
448
+ <dd>
449
+ return the number of valid elements.</dd>
450
+ <dt><a name="label-162" id="label-162"><code>NArrayMiss#count_invalid</code></a></dt><!-- RDLabel: "NArrayMiss#count_invalid" -->
451
+ <dd>
452
+ return the number of invalid elements.</dd>
453
+ </dl>
454
+ <h3><a name="label-163" id="label-163">Others</a></h3><!-- RDLabel: "Others" -->
455
+ <dl>
456
+ <dt><a name="label-164" id="label-164"><code>NArrayMiss#integer?</code></a></dt><!-- RDLabel: "NArrayMiss#integer?" -->
457
+ <dd>
458
+ return true if <code>NArrayMiss</code> is byte, sint or int, else false.</dd>
459
+ <dt><a name="label-165" id="label-165"><code>NArrayMiss#complex?</code></a></dt><!-- RDLabel: "NArrayMiss#complex?" -->
460
+ <dd>
461
+ return true if <code>NArrayMiss</code> is scomplex or complex, else false.</dd>
462
+ <dt><a name="label-166" id="label-166"><code>NArrayMiss#dup</code></a></dt><!-- RDLabel: "NArrayMiss#dup" -->
463
+ <dt><a name="label-167" id="label-167"><code>NArrayMiss#coerce(<var>object</var>)</code></a></dt><!-- RDLabel: "NArrayMiss#coerce" -->
464
+ <dt><a name="label-168" id="label-168"><code>NArrayMiss#inspect</code></a></dt><!-- RDLabel: "NArrayMiss#inspect" -->
465
+ </dl>
466
+ <p>go back to <a href="#label-1">Index</a></p>
467
+
468
+ </body>
469
+ </html>