fathom 0.3.3 → 0.3.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
data/lib/fathom.rb CHANGED
@@ -19,40 +19,73 @@ module Fathom
19
19
  lib = File.expand_path(File.dirname(__FILE__))
20
20
  $LOAD_PATH.unshift(lib)
21
21
 
22
- # Autoload classes and modules so that we only load as much of the library as we're using.
23
- # This allows us to have a fairly large library without taking up a lot of memory unless we need it.
24
- autoload :Node, "node"
25
- autoload :BeliefNode, "node/belief_node"
26
- autoload :DataCollection, "node/data_collection"
27
- autoload :DataNode, "node/data_node"
28
- autoload :DiscreteNode, "node/discrete_node"
29
- autoload :MCNode, "node/mc_node"
30
- autoload :PlausibleRange, "node/plausible_range"
31
- autoload :Fact, "node/fact"
32
- autoload :Decision, "node/decision"
33
- autoload :CPMNode, 'node/cpm_node'
34
-
35
- autoload :ValueDescription, "value_description"
36
- autoload :MonteCarloSet, "monte_carlo_set"
37
- autoload :KnowledgeBase, "knowledge_base"
38
-
39
- autoload :Import, "import"
40
- autoload :ImportNode, "import/import_node"
41
- autoload :YAMLImport, 'import/yaml_import'
42
- autoload :CSVImport, 'import/csv_import'
43
- # autoload :RDFImport, 'import/rdf_import'
44
- # autoload :SQLiteImport, 'import/sqlite_import'
22
+ Fathom.autoload :Node, "node"
23
+ Fathom.autoload :BeliefNode, "node/belief_node"
24
+ Fathom.autoload :DataCollection, "node/data_collection"
25
+ Fathom.autoload :DataNode, "node/data_node"
26
+ Fathom.autoload :DiscreteNode, "node/discrete_node"
27
+ Fathom.autoload :MCNode, "node/mc_node"
28
+ Fathom.autoload :PlausibleRange, "node/plausible_range"
29
+ Fathom.autoload :Fact, "node/fact"
30
+ Fathom.autoload :Decision, "node/decision"
31
+ Fathom.autoload :CPMNode, 'node/cpm_node'
45
32
 
46
- autoload :Simulation, 'simulation'
47
- autoload :TickMethods, 'simulation/tick_methods'
48
- autoload :TickSimulation, 'simulation/tick_simulation'
49
-
50
- autoload :Agent, 'agent'
51
- autoload :Properties, 'agent/properties'
52
- autoload :AgentCluster, 'agent/agent_cluster'
33
+ Fathom.autoload :ValueDescription, "value_description"
34
+ Fathom.autoload :MonteCarloSet, "monte_carlo_set"
35
+ Fathom.autoload :KnowledgeBase, "knowledge_base"
36
+
37
+ Fathom.autoload :Import, "import"
38
+ Fathom.autoload :ImportNode, "import/import_node"
39
+ Fathom.autoload :YAMLImport, 'import/yaml_import'
40
+ Fathom.autoload :CSVImport, 'import/csv_import'
41
+
42
+ Fathom.autoload :Simulation, 'simulation'
43
+ Fathom.autoload :TickMethods, 'simulation/tick_methods'
44
+ Fathom.autoload :TickSimulation, 'simulation/tick_simulation'
53
45
 
54
- autoload :EnforcedName, 'node/node_extensions/enforced_name'
55
- autoload :NumericMethods, 'node/node_extensions/numeric_methods'
46
+ Fathom.autoload :Agent, 'agent'
47
+ Fathom.autoload :Properties, 'agent/properties'
48
+ Fathom.autoload :AgentCluster, 'agent/agent_cluster'
49
+
50
+ Fathom.autoload :EnforcedName, 'node/node_extensions/enforced_name'
51
+ Fathom.autoload :NumericMethods, 'node/node_extensions/numeric_methods'
52
+
53
+
54
+
55
+ # Autoload classes and modules so that we only load as much of the library as we're using.
56
+ # This allows us to have a fairly large library without taking up a lot of memory unless we need it.
57
+ # autoload :Node, "node"
58
+ # autoload :BeliefNode, "node/belief_node"
59
+ # autoload :DataCollection, "node/data_collection"
60
+ # autoload :DataNode, "node/data_node"
61
+ # autoload :DiscreteNode, "node/discrete_node"
62
+ # autoload :MCNode, "node/mc_node"
63
+ # autoload :PlausibleRange, "node/plausible_range"
64
+ # autoload :Fact, "node/fact"
65
+ # autoload :Decision, "node/decision"
66
+ # autoload :CPMNode, 'node/cpm_node'
67
+ #
68
+ # autoload :ValueDescription, "value_description"
69
+ # autoload :MonteCarloSet, "monte_carlo_set"
70
+ # autoload :KnowledgeBase, "knowledge_base"
71
+ #
72
+ # autoload :Import, "import"
73
+ # autoload :ImportNode, "import/import_node"
74
+ # autoload :YAMLImport, 'import/yaml_import'
75
+ # autoload :CSVImport, 'import/csv_import'
76
+ # # autoload :RDFImport, 'import/rdf_import'
77
+ # # autoload :SQLiteImport, 'import/sqlite_import'
78
+ #
79
+ # autoload :Simulation, 'simulation'
80
+ # autoload :TickMethods, 'simulation/tick_methods'
81
+ # autoload :TickSimulation, 'simulation/tick_simulation'
82
+ #
83
+ # autoload :Agent, 'agent'
84
+ # autoload :Properties, 'agent/properties'
85
+ # autoload :AgentCluster, 'agent/agent_cluster'
86
+ #
87
+ # autoload :EnforcedName, 'node/node_extensions/enforced_name'
88
+ # autoload :NumericMethods, 'node/node_extensions/numeric_methods'
56
89
 
57
90
  require 'distributions'
58
91
  module Distributions
@@ -22,7 +22,7 @@ describe MCNode do
22
22
  mcn.value_description.should eql(@vd)
23
23
  end
24
24
 
25
- it "should be able to take a block instead of a named lamda for the value description" do
25
+ it "should be able to take a block instead of a named lambda for the value description" do
26
26
  mcn = MCNode.new {|n| {:value_result => 1}}
27
27
  mcn.value_description.should be_a(Proc)
28
28
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fathom
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - David