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 +1 -1
- data/lib/fathom.rb +65 -32
- data/spec/fathom/node/mc_node_spec.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.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
|
-
|
23
|
-
|
24
|
-
autoload :
|
25
|
-
autoload :
|
26
|
-
autoload :
|
27
|
-
autoload :
|
28
|
-
autoload :
|
29
|
-
autoload :
|
30
|
-
autoload :
|
31
|
-
autoload :
|
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 :
|
47
|
-
autoload :
|
48
|
-
autoload :
|
49
|
-
|
50
|
-
autoload :
|
51
|
-
autoload :
|
52
|
-
autoload :
|
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 :
|
55
|
-
autoload :
|
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
|
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