narray_miss 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,373 @@
1
+ 2005-08-25 11:00 seiya
2
+
3
+ * lib/narray_miss.rb:
4
+ remove NArray#_load, _dump
5
+
6
+ 2005-06-30 15:53 seiya
7
+
8
+ * lib/narray_miss.rb:
9
+ bugfix error in algebra when rank of first term is smaller than
10
+ second one
11
+
12
+ 2005-06-30 15:22 seiya
13
+
14
+ * lib/narray_miss.rb:
15
+ change array.class==NArray to array.is_a?(NArray)
16
+
17
+ 2005-05-26 15:14 seiya
18
+
19
+ * lib/narray_miss.rb:
20
+ bugfix in #mediun, #sort,, and #sort_index
21
+
22
+ 2005-05-26 12:21 seiya
23
+
24
+ * lib/narray_miss.rb:
25
+ bugfix for #median, #sort, #sort_index
26
+
27
+ 2005-05-26 11:23 seiya
28
+
29
+ * lib/narray_miss.rb:
30
+ add new method #median
31
+
32
+ 2004-11-24 12:39 seiya
33
+
34
+ * lib/narray_miss.rb:
35
+ new methods #all_valid?, #none_valid?, #all_invalid?, and
36
+ #any_valid?
37
+
38
+ 2004-08-12 17:01 seiya
39
+
40
+ * lib/narray_miss.rb:
41
+ bugfix for #-@, #abs, #~@ and #not, that was destructive methods.
42
+
43
+ 2004-08-11 11:18 seiya
44
+
45
+ * ChangeLog, README, narray_miss.rb, lib/narray_miss.rb:
46
+ change structure of package change to use setup.rb change README
47
+
48
+ 2004-06-23 11:20 seiya
49
+
50
+ * narray_miss.rb:
51
+ bugfixs
52
+
53
+ 2004-06-11 12:28 seiya
54
+
55
+ * narray_miss.rb:
56
+ return nil when all missing_value for mean sum max min stddev
57
+ mask.not instede of mask.where2[1]
58
+
59
+ 2004-03-29 12:13 seiya
60
+
61
+ * ChangeLog:
62
+ releas 1.0.3
63
+
64
+ 2004-03-18 17:18 seiya
65
+
66
+ * narray_miss.rb:
67
+ add NArray#_dump and NArray._load
68
+
69
+ 2004-03-18 17:17 seiya
70
+
71
+ * narray_miss.rb:
72
+ add NArrayMiss#_dump and NArrayMiss._load
73
+
74
+ 2004-03-03 14:27 seiya
75
+
76
+ * narray_miss.rb:
77
+ bugfix for NArrayMiss.to_nam bugfix for NArrayMiss#transpose
78
+
79
+ 2004-03-02 18:17 seiya
80
+
81
+ * ChangeLog, README:
82
+ release for 1.0.2
83
+
84
+ 2004-03-02 17:17 seiya
85
+
86
+ * narray_miss.rb:
87
+ bugfix for NArrayMiss[] bugfix for NArrayMiss#[] change to return
88
+ NArrayMiss insted of Numeric when length==1 in [+,-,*,/, etc]
89
+
90
+ 2003-10-29 12:49 seiya
91
+
92
+ * narray_miss.rb:
93
+ add option "min_count" to mean
94
+
95
+ 2003-10-06 19:44 seiya
96
+
97
+ * narray_miss.rb:
98
+ change inspect for within 80 chars in 1 line
99
+
100
+ 2003-10-06 19:27 seiya
101
+
102
+ * narray_miss.rb:
103
+ bugfix for inspect
104
+
105
+ 2003-10-06 17:12 seiya
106
+
107
+ * README:
108
+ README for releas narray_miss-1.0.1
109
+
110
+ 2003-10-06 17:11 seiya
111
+
112
+ * ChangeLog:
113
+ changelog for releas narray_miss-1.0.1
114
+
115
+ 2003-10-06 17:05 seiya
116
+
117
+ * narray_miss.rb:
118
+ change NMMath and include to NArrayMiss class then x.sin is same
119
+ NMMath::sin(x)
120
+
121
+ 2003-10-06 16:15 seiya
122
+
123
+ * narray_miss.rb:
124
+ change format of NArrayMiss#inspect
125
+
126
+ 2003-10-06 12:52 seiya
127
+
128
+ * narray_miss.rb:
129
+ add argument to eval (routine, nil, __FILE__, __LINE__+1)
130
+
131
+ 2003-09-01 17:06 seiya
132
+
133
+ * ChangeLog, README:
134
+ rel for 1.0.0
135
+
136
+ 2003-08-19 16:28 seiya
137
+
138
+ * narray_miss.rb:
139
+ hoge.nil! -> !hoge
140
+
141
+ 2003-08-19 15:47 seiya
142
+
143
+ * narray_miss.rb:
144
+ change NArrayMiss[Numeric] return scalor new each_valid,
145
+ each_valid_with_index change code for collect
146
+
147
+ 2003-08-19 15:35 seiya
148
+
149
+ * narray_miss.rb:
150
+ to_na -> to_na! get_mask, get_array -> get_mask!, get_array!
151
+ valiadation, invalidation -> set_valid, set_invalid
152
+
153
+ 2003-06-17 18:15 seiya
154
+
155
+ * README:
156
+ change README
157
+
158
+ 2003-04-17 16:59 seiya
159
+
160
+ * narray_miss.rb:
161
+ bugfix for NArrayMiss#stddev sometime return NaN when mean is
162
+ dominant
163
+
164
+ 2003-04-16 20:36 seiya
165
+
166
+ * narray_miss.rb:
167
+ several methods to return scalar if length==1 && valid
168
+
169
+ 2003-04-16 17:22 seiya
170
+
171
+ * narray_miss.rb:
172
+ NArrayMiss#[in]validation to be able to get both of index and
173
+ array of indeices for argument
174
+
175
+ 2003-04-11 17:50 seiya
176
+
177
+ * narray_miss.rb:
178
+ enable for validation and invalidation to get Array of index for
179
+ argument
180
+
181
+ 2003-04-11 13:14 seiya
182
+
183
+ * narray_miss.rb:
184
+ make MArrayMiss#[hoge]= nil to invalidation
185
+
186
+ 2003-03-25 10:31 seiya
187
+
188
+ * narray_miss.rb:
189
+ bugfix for set_mask
190
+
191
+ 2003-03-18 19:36 seiya
192
+
193
+ * ChangeLog:
194
+ ChangeLog for releas 0.5
195
+
196
+ 2003-03-13 15:25 seiya
197
+
198
+ * narray_miss.rb:
199
+ bugfix to_na
200
+
201
+ 2003-03-13 15:03 seiya
202
+
203
+ * narray_miss.rb:
204
+ bug for +,-,*,.... when NArrayMiss.***(1,10)+NArrayMiss.***(10,1)
205
+
206
+ 2003-03-13 12:58 seiya
207
+
208
+ * narray_miss.rb:
209
+ change to validate for indgen bugfix (stddev for no arg) bugfix
210
+ (switch validation and invalidation)
211
+
212
+ 2003-03-06 10:55 seiya
213
+
214
+ * narray_miss.rb:
215
+ missfix for document
216
+
217
+ 2003-02-24 12:29 seiya
218
+
219
+ * ChangeLog, README:
220
+ ChangeLog and README for releas 0.4
221
+
222
+ 2003-02-24 12:21 seiya
223
+
224
+ * narray_miss.rb:
225
+ document
226
+
227
+ 2003-02-24 12:17 seiya
228
+
229
+ * narray_miss.rb:
230
+ new method NArrayMiss#set_without_validation change
231
+ NArrayMiss#[]= to make valid elements bugfix
232
+
233
+ 2003-02-24 11:24 seiya
234
+
235
+ * narray_miss.rb:
236
+ NArrayMiss#to_na -> NArrayMiss#to_na([missing_value])
237
+
238
+ 2003-02-21 19:22 seiya
239
+
240
+ * narray_miss.rb:
241
+ new methods "all_valid", "all_invalid" bugfix for "mean" "mask"
242
+ "set_mask"
243
+
244
+ 2003-02-21 18:10 seiya
245
+
246
+ * narray_miss.rb:
247
+ new methods "size", "length"
248
+
249
+ 2003-02-20 14:45 seiya
250
+
251
+ * ChangeLog, narray_miss.rb:
252
+ bugfix of set_missing_value
253
+
254
+ 2003-02-20 14:37 seiya
255
+
256
+ * ChangeLog, README:
257
+ chage ChangeLog README
258
+
259
+ 2003-02-20 14:29 seiya
260
+
261
+ * narray_miss.rb:
262
+ update document
263
+
264
+ 2003-02-20 14:27 seiya
265
+
266
+ * narray_miss.rb:
267
+ bug fix
268
+
269
+ 2003-02-01 18:09 seiya
270
+
271
+ * narray_miss.rb:
272
+ change document
273
+
274
+ 2003-02-01 17:16 seiya
275
+
276
+ * ChangeLog:
277
+ change ChangeLog for releas narray_miss-0.2
278
+
279
+ 2003-02-01 17:11 seiya
280
+
281
+ * narray_miss.rb:
282
+ make "min_count" option valid for accum, sum, min, max, mean and
283
+ stddev methods. new methods to_type change document for above
284
+ change
285
+
286
+ 2003-01-31 19:58 seiya
287
+
288
+ * narray_miss.rb:
289
+ update document for rd.
290
+
291
+ 2003-01-30 17:20 seiya
292
+
293
+ * narray_miss.html:
294
+ remove narray_miss.html
295
+
296
+ 2003-01-30 17:19 seiya
297
+
298
+ * narray_miss.rb:
299
+ change header for rd remove narray_miss.html for cvs
300
+
301
+ 2003-01-30 17:15 seiya
302
+
303
+ * narray_miss.html, narray_miss.rb:
304
+ add narray_miss.html < rd2 narray_miss.rb new method rondomn add
305
+ args for rd
306
+
307
+ 2003-01-30 16:48 seiya
308
+
309
+ * narray_miss.rb:
310
+ change for use rdtool == is obsolete all? none? any? was defined
311
+ twice
312
+
313
+ 2003-01-30 15:03 seiya
314
+
315
+ * ChangeLog:
316
+ add ChangeLog
317
+
318
+ 2003-01-30 14:59 seiya
319
+
320
+ * README:
321
+ add README
322
+
323
+ 2003-01-09 17:13 seiya
324
+
325
+ * narray_miss.rb:
326
+ some bug fixes some new methods
327
+
328
+ 2003-01-09 13:14 seiya
329
+
330
+ * narray_miss.rb:
331
+ to_nam use dup Routine -> private method routine use coerce
332
+ inprove count_[in]valid set_missing_value[!] some bug fixes
333
+
334
+ 2003-01-08 18:38 seiya
335
+
336
+ * narray_miss.rb:
337
+ bug fix remove missing_value
338
+
339
+ 2003-01-08 18:01 seiya
340
+
341
+ * narray_miss.rb:
342
+ @missing_value -> @default_missing_value
343
+
344
+ 2003-01-08 17:44 seiya
345
+
346
+ * narray_miss.rb:
347
+ change to_nam
348
+
349
+ 2003-01-08 17:15 seiya
350
+
351
+ * narray_miss.rb:
352
+ not make new array for to_nar alias hoge fuge -> alias :hoge
353
+ :fuge
354
+
355
+ 2003-01-08 16:39 seiya
356
+
357
+ * narray_miss.rb:
358
+ bug fix
359
+
360
+ 2003-01-06 11:41 seiya
361
+
362
+ * narray_miss.rb:
363
+ pos -> private
364
+
365
+ 2003-01-06 11:22 seiya
366
+
367
+ * narray_miss.rb:
368
+ class NArrayMiss
369
+
370
+ 2003-01-06 11:22 seiya
371
+
372
+ * narray_miss.rb: Initial revision
373
+
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "rspec", "~> 2.3.0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.5.2"
12
+ gem "rcov", ">= 0"
13
+ end
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Eriko Nishimoto
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,46 @@
1
+ NArrayMiss README
2
+ ============
3
+
4
+ NArrayMiss is an additional Class of NArray to handle missing value.
5
+
6
+ Requirements
7
+ ------------
8
+
9
+ * ruby >= 1.6
10
+ * NArray
11
+
12
+ Install
13
+ -------
14
+
15
+ De-Compress archive and enter its top directory.
16
+ Then type:
17
+
18
+ $ ruby setup.rb config
19
+ ($ su)
20
+ # ruby setup.rb install
21
+
22
+ You can also install files into your favorite directory
23
+ by supplying setup.rb some options. Try "ruby setup.rb --help".
24
+
25
+ Usage
26
+ -----
27
+
28
+ Please add following code before useing NArrayMiss class:
29
+
30
+ require "narray_miss"
31
+
32
+ License
33
+ -------
34
+
35
+ GNU LGPL, Lesser General Public License version 2.
36
+
37
+
38
+ Bug Reports
39
+ -----------
40
+
41
+ Any kind of bug reports are welcom.
42
+ If you find bugs, please email me.
43
+
44
+
45
+ Seiya Nishizawa
46
+ seiya@kugi.kyoto-u.ac.jp