analytica 0.0.1

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.
data/History.txt ADDED
@@ -0,0 +1,6 @@
1
+ === 1.0.0 / 2010-08-03
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
data/Manifest.txt ADDED
@@ -0,0 +1,7 @@
1
+ History.txt
2
+ Manifest.txt
3
+ README.txt
4
+ Rakefile
5
+ bin/analytica
6
+ lib/analytica.rb
7
+ test/test_analytica.rb
data/README.txt ADDED
@@ -0,0 +1,61 @@
1
+ = analytica
2
+
3
+ http://www.raeez.com/analytica
4
+
5
+ == DESCRIPTION:
6
+
7
+ Ruby wrapper abstracting basic data-analysis.
8
+
9
+ -graph plotting
10
+ -derivatives
11
+ -indicators [sum mean, moving average etc.]
12
+
13
+ == FEATURES/PROBLEMS:
14
+
15
+
16
+
17
+ == SYNOPSIS:
18
+
19
+
20
+
21
+ == REQUIREMENTS:
22
+
23
+ strict
24
+
25
+ == INSTALL:
26
+
27
+ * sudo gem install analytica
28
+
29
+ == DEVELOPERS:
30
+
31
+ After checking out the source, run:
32
+
33
+ $ rake newb
34
+
35
+ This task will install any missing dependencies, run the tests/specs,
36
+ and generate the RDoc.
37
+
38
+ == LICENSE:
39
+
40
+ (The MIT License)
41
+
42
+ Copyright (c) 2010 FIX
43
+
44
+ Permission is hereby granted, free of charge, to any person obtaining
45
+ a copy of this software and associated documentation files (the
46
+ 'Software'), to deal in the Software without restriction, including
47
+ without limitation the rights to use, copy, modify, merge, publish,
48
+ distribute, sublicense, and/or sell copies of the Software, and to
49
+ permit persons to whom the Software is furnished to do so, subject to
50
+ the following conditions:
51
+
52
+ The above copyright notice and this permission notice shall be
53
+ included in all copies or substantial portions of the Software.
54
+
55
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
56
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
57
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
58
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
59
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
60
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
61
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,19 @@
1
+ require 'rubygems'
2
+ gem 'hoe', '>= 2.0.0'
3
+ #gem 'strict', '>= 0.0.3'
4
+ require 'hoe'
5
+ require 'strict'
6
+ require 'lib/analytica'
7
+
8
+ Hoe.new('Analytica', Analytica::VERSION) do |p|
9
+ p.name = 'analytica'
10
+ p.author = 'Raeez Lorgat'
11
+ p.description = 'Data Analysis wrapper for ruby arrays'
12
+ p.email = 'raeez@mit.edu'
13
+ p.summary = 'Analytica implements simple data analysis and graph plotting over ruby arrays'
14
+ p.url = 'http://www.raeez.com/anlaytica'
15
+ p.extra_deps = ['strict']
16
+ end
17
+
18
+ desc "Release and publish documentation"
19
+ task :repubdoc => [:release, :publish_docs]
data/bin/analytica ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ abort "you need to write me"
data/lib/analytica.rb ADDED
@@ -0,0 +1,26 @@
1
+ require 'strict'
2
+
3
+ require File.join(File.dirname(__FILE__), 'analytica_comp')
4
+ require File.join(File.dirname(__FILE__), 'analytica_viz')
5
+
6
+ module Analytica
7
+ VERSION = '0.0.1'
8
+
9
+ include Strict
10
+
11
+ class DataSet < Array
12
+ include Computation
13
+ include Visualization
14
+
15
+ def initialize(datapoints)
16
+ enforce!(:numeric_array, datapoints)
17
+
18
+ super datapoints
19
+ end
20
+
21
+ def <<(object)
22
+ enforce!(:numeric, object)
23
+ super object
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,8 @@
1
+ require "test/unit"
2
+ require "analytica"
3
+
4
+ class TestAnalytica < Test::Unit::TestCase
5
+ def test_sanity
6
+ puts "not tests written!"
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: analytica
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Raeez Lorgat
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-08-03 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: strict
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: rubyforge
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 7
44
+ segments:
45
+ - 2
46
+ - 0
47
+ - 4
48
+ version: 2.0.4
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: hoe
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 21
60
+ segments:
61
+ - 2
62
+ - 6
63
+ - 1
64
+ version: 2.6.1
65
+ type: :development
66
+ version_requirements: *id003
67
+ description: Data Analysis wrapper for ruby arrays
68
+ email: raeez@mit.edu
69
+ executables:
70
+ - analytica
71
+ extensions: []
72
+
73
+ extra_rdoc_files:
74
+ - History.txt
75
+ - Manifest.txt
76
+ - README.txt
77
+ files:
78
+ - History.txt
79
+ - Manifest.txt
80
+ - README.txt
81
+ - Rakefile
82
+ - bin/analytica
83
+ - lib/analytica.rb
84
+ - test/test_analytica.rb
85
+ has_rdoc: true
86
+ homepage: http://www.raeez.com/anlaytica
87
+ licenses: []
88
+
89
+ post_install_message:
90
+ rdoc_options:
91
+ - --main
92
+ - README.txt
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ hash: 3
101
+ segments:
102
+ - 0
103
+ version: "0"
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: 3
110
+ segments:
111
+ - 0
112
+ version: "0"
113
+ requirements: []
114
+
115
+ rubyforge_project: analytica
116
+ rubygems_version: 1.3.7
117
+ signing_key:
118
+ specification_version: 3
119
+ summary: Analytica implements simple data analysis and graph plotting over ruby arrays
120
+ test_files:
121
+ - test/test_analytica.rb