fathom 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.bundle/config +2 -0
- data/.document +5 -0
- data/.gitignore +5 -0
- data/.rspec +1 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +30 -0
- data/LICENSE +20 -0
- data/README.md +176 -0
- data/Rakefile +50 -0
- data/VERSION +1 -0
- data/autotest/discover.rb +1 -0
- data/lib/fathom.rb +68 -0
- data/lib/fathom/archive/conditional_probability_matrix.rb +116 -0
- data/lib/fathom/archive/n2.rb +198 -0
- data/lib/fathom/archive/n3.rb +119 -0
- data/lib/fathom/archive/node.rb +74 -0
- data/lib/fathom/archive/noodle.rb +136 -0
- data/lib/fathom/archive/scratch.rb +45 -0
- data/lib/fathom/basic_node.rb +8 -0
- data/lib/fathom/causal_graph.rb +12 -0
- data/lib/fathom/combined_plausibilities.rb +12 -0
- data/lib/fathom/concept.rb +83 -0
- data/lib/fathom/data_node.rb +51 -0
- data/lib/fathom/import.rb +68 -0
- data/lib/fathom/import/csv_import.rb +60 -0
- data/lib/fathom/import/yaml_import.rb +53 -0
- data/lib/fathom/inverter.rb +21 -0
- data/lib/fathom/knowledge_base.rb +23 -0
- data/lib/fathom/monte_carlo_set.rb +76 -0
- data/lib/fathom/node_utilities.rb +8 -0
- data/lib/fathom/plausible_range.rb +82 -0
- data/lib/fathom/value_aggregator.rb +11 -0
- data/lib/fathom/value_description.rb +79 -0
- data/lib/fathom/value_multiplier.rb +18 -0
- data/lib/options_hash.rb +186 -0
- data/spec/fathom/data_node_spec.rb +61 -0
- data/spec/fathom/import/csv_import_spec.rb +36 -0
- data/spec/fathom/import/yaml_import_spec.rb +40 -0
- data/spec/fathom/import_spec.rb +22 -0
- data/spec/fathom/knowledge_base_spec.rb +16 -0
- data/spec/fathom/monte_carlo_set_spec.rb +58 -0
- data/spec/fathom/plausible_range_spec.rb +130 -0
- data/spec/fathom/value_description_spec.rb +70 -0
- data/spec/fathom_spec.rb +8 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/support/demo.yml +17 -0
- metadata +135 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
require 'fathom'
|
4
|
+
require 'rspec'
|
5
|
+
require 'rspec/autorun'
|
6
|
+
|
7
|
+
# Requires supporting ruby files in spec/support/ and its subdirectories.
|
8
|
+
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |c|
|
11
|
+
# c.filter_run :focus => true
|
12
|
+
c.filter_run_excluding :slow => true
|
13
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
CO2 Emissions:
|
2
|
+
min: 1_000_000
|
3
|
+
max: 1_000_000_000
|
4
|
+
|
5
|
+
Invalid Hash:
|
6
|
+
different: signature
|
7
|
+
|
8
|
+
CO2 Readings:
|
9
|
+
- 10
|
10
|
+
- 20
|
11
|
+
- 30
|
12
|
+
|
13
|
+
More Complete Range:
|
14
|
+
min: 10
|
15
|
+
max: 100
|
16
|
+
confidence_interval: 0.6
|
17
|
+
description: Some good description
|
metadata
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fathom
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- David
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-11-05 00:00:00 -06:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rspec
|
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: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
description: Collecting some decision support tools in a decoupled Ruby library.
|
36
|
+
email: davidlamontrichards@gmail.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- LICENSE
|
43
|
+
- README.md
|
44
|
+
files:
|
45
|
+
- .bundle/config
|
46
|
+
- .document
|
47
|
+
- .gitignore
|
48
|
+
- .rspec
|
49
|
+
- Gemfile
|
50
|
+
- Gemfile.lock
|
51
|
+
- LICENSE
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- VERSION
|
55
|
+
- autotest/discover.rb
|
56
|
+
- lib/fathom.rb
|
57
|
+
- lib/fathom/archive/conditional_probability_matrix.rb
|
58
|
+
- lib/fathom/archive/n2.rb
|
59
|
+
- lib/fathom/archive/n3.rb
|
60
|
+
- lib/fathom/archive/node.rb
|
61
|
+
- lib/fathom/archive/noodle.rb
|
62
|
+
- lib/fathom/archive/scratch.rb
|
63
|
+
- lib/fathom/basic_node.rb
|
64
|
+
- lib/fathom/causal_graph.rb
|
65
|
+
- lib/fathom/combined_plausibilities.rb
|
66
|
+
- lib/fathom/concept.rb
|
67
|
+
- lib/fathom/data_node.rb
|
68
|
+
- lib/fathom/import.rb
|
69
|
+
- lib/fathom/import/csv_import.rb
|
70
|
+
- lib/fathom/import/yaml_import.rb
|
71
|
+
- lib/fathom/inverter.rb
|
72
|
+
- lib/fathom/knowledge_base.rb
|
73
|
+
- lib/fathom/monte_carlo_set.rb
|
74
|
+
- lib/fathom/node_utilities.rb
|
75
|
+
- lib/fathom/plausible_range.rb
|
76
|
+
- lib/fathom/value_aggregator.rb
|
77
|
+
- lib/fathom/value_description.rb
|
78
|
+
- lib/fathom/value_multiplier.rb
|
79
|
+
- lib/options_hash.rb
|
80
|
+
- spec/fathom/data_node_spec.rb
|
81
|
+
- spec/fathom/import/csv_import_spec.rb
|
82
|
+
- spec/fathom/import/yaml_import_spec.rb
|
83
|
+
- spec/fathom/import_spec.rb
|
84
|
+
- spec/fathom/knowledge_base_spec.rb
|
85
|
+
- spec/fathom/monte_carlo_set_spec.rb
|
86
|
+
- spec/fathom/plausible_range_spec.rb
|
87
|
+
- spec/fathom/value_description_spec.rb
|
88
|
+
- spec/fathom_spec.rb
|
89
|
+
- spec/spec_helper.rb
|
90
|
+
- spec/support/demo.yml
|
91
|
+
has_rdoc: true
|
92
|
+
homepage: http://github.com/davidrichards/fathom
|
93
|
+
licenses: []
|
94
|
+
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options:
|
97
|
+
- --charset=UTF-8
|
98
|
+
require_paths:
|
99
|
+
- lib
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
+
none: false
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
hash: 3
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
version: "0"
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
hash: 3
|
115
|
+
segments:
|
116
|
+
- 0
|
117
|
+
version: "0"
|
118
|
+
requirements: []
|
119
|
+
|
120
|
+
rubyforge_project:
|
121
|
+
rubygems_version: 1.3.7
|
122
|
+
signing_key:
|
123
|
+
specification_version: 3
|
124
|
+
summary: Decision Support in Ruby
|
125
|
+
test_files:
|
126
|
+
- spec/fathom/data_node_spec.rb
|
127
|
+
- spec/fathom/import/csv_import_spec.rb
|
128
|
+
- spec/fathom/import/yaml_import_spec.rb
|
129
|
+
- spec/fathom/import_spec.rb
|
130
|
+
- spec/fathom/knowledge_base_spec.rb
|
131
|
+
- spec/fathom/monte_carlo_set_spec.rb
|
132
|
+
- spec/fathom/plausible_range_spec.rb
|
133
|
+
- spec/fathom/value_description_spec.rb
|
134
|
+
- spec/fathom_spec.rb
|
135
|
+
- spec/spec_helper.rb
|