daru 0.0.3.1 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.1
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sameer Deshmukh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-05 00:00:00.000000000 Z
11
+ date: 2014-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: nyaplot
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: nmatrix
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -83,6 +97,12 @@ dependencies:
83
97
  description: |
84
98
  Daru (Data Analysis in RUby) is a library for storage, analysis and manipulation
85
99
  of data.
100
+
101
+ Daru works with Ruby arrays, NMatrix and MDArray, thus working seamlessly accross
102
+ ruby interpreters, at the same time providing speed for those who need it.
103
+
104
+ This library is under active development so NMatrix and MDArray support is
105
+ somewhat limited, but should be available soon!
86
106
  email:
87
107
  - sameer.deshmukh93@gmail.com
88
108
  executables: []
@@ -108,16 +128,20 @@ files:
108
128
  - lib/daru/dataframe.rb
109
129
  - lib/daru/index.rb
110
130
  - lib/daru/io/io.rb
111
- - lib/daru/math/arithmetic/dataframe.rb
112
- - lib/daru/math/arithmetic/vector.rb
113
- - lib/daru/math/statistics/dataframe.rb
114
- - lib/daru/math/statistics/vector.rb
131
+ - lib/daru/maths/arithmetic/dataframe.rb
132
+ - lib/daru/maths/arithmetic/vector.rb
133
+ - lib/daru/maths/statistics/dataframe.rb
134
+ - lib/daru/maths/statistics/vector.rb
115
135
  - lib/daru/monkeys.rb
136
+ - lib/daru/plotting/dataframe.rb
137
+ - lib/daru/plotting/vector.rb
116
138
  - lib/daru/vector.rb
117
139
  - lib/version.rb
140
+ - notebooks/intro_with_music_data_.ipynb
118
141
  - spec/dataframe_spec.rb
119
142
  - spec/fixtures/countries.json
120
143
  - spec/fixtures/matrix_test.csv
144
+ - spec/fixtures/music_data.tsv
121
145
  - spec/index_spec.rb
122
146
  - spec/io/io_spec.rb
123
147
  - spec/math/arithmetic/dataframe_spec.rb
@@ -155,6 +179,7 @@ test_files:
155
179
  - spec/dataframe_spec.rb
156
180
  - spec/fixtures/countries.json
157
181
  - spec/fixtures/matrix_test.csv
182
+ - spec/fixtures/music_data.tsv
158
183
  - spec/index_spec.rb
159
184
  - spec/io/io_spec.rb
160
185
  - spec/math/arithmetic/dataframe_spec.rb
@@ -164,3 +189,4 @@ test_files:
164
189
  - spec/monkeys_spec.rb
165
190
  - spec/spec_helper.rb
166
191
  - spec/vector_spec.rb
192
+ has_rdoc:
@@ -1,71 +0,0 @@
1
- module Daru
2
- module Math
3
- module Arithmetic
4
- module Vector
5
- def + other
6
- case other
7
- when Daru::Vector
8
- v2v_binary :+, other
9
- else
10
- Daru::Vector.new self.map { |e| e + other }, name: @name, index: @index
11
- end
12
- end
13
-
14
- def - other
15
- case other
16
- when Daru::Vector
17
- v2v_binary :-, other
18
- else
19
- Daru::Vector.new self.map { |e| e - other }, name: @name, index: @index
20
- end
21
- end
22
-
23
- def * other
24
- case other
25
- when Daru::Vector
26
- v2v_binary :*, other
27
- else
28
- Daru::Vector.new self.map { |e| e * other }, name: @name, index: @index
29
- end
30
- end
31
-
32
- def / other
33
- case other
34
- when Daru::Vector
35
- v2v_binary :/, other
36
- else
37
- Daru::Vector.new self.map { |e| e / other }, name: @name, index: @index
38
- end
39
- end
40
-
41
- def % other
42
- case other
43
- when Daru::Vector
44
- v2v_binary :%, other
45
- else
46
- Daru::Vector.new self.map { |e| e % other }, name: @name, index: @index
47
- end
48
- end
49
-
50
- private
51
-
52
- def v2v_binary operation, other
53
- common_idxs = []
54
- elements = []
55
-
56
- @index.each do |idx|
57
- this = self[idx]
58
- that = other[idx]
59
-
60
- if this and that
61
- elements << this.send(operation ,that)
62
- common_idxs << idx
63
- end
64
- end
65
-
66
- Daru::Vector.new(elements, name: @name, index: common_idxs)
67
- end
68
- end
69
- end
70
- end
71
- end
@@ -1,9 +0,0 @@
1
- module Daru
2
- module Math
3
- module Statistics
4
- module Vector
5
-
6
- end
7
- end
8
- end
9
- end