fathom 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/fathom/archive/inverter.rb +1 -1
- data/lib/fathom/import/import_node.rb +1 -1
- data/lib/fathom/node/cpm_node.rb +1 -1
- data/lib/fathom/node/data_node.rb +1 -1
- data/lib/fathom/node/decision.rb +1 -1
- data/lib/fathom/node/discrete_node.rb +1 -1
- data/lib/fathom/node/fact.rb +1 -1
- data/lib/fathom/node/mc_node.rb +1 -1
- data/lib/fathom/node/node_extensions/numeric_methods.rb +3 -3
- data/lib/fathom/node/plausible_range.rb +1 -1
- data/spec/fathom/node/node_extensions/enforced_name_spec.rb +1 -1
- data/spec/support/dummy_numeric_node.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/lib/fathom/node/cpm_node.rb
CHANGED
@@ -4,7 +4,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom')
|
|
4
4
|
A DataNode is a node generated from data itself. It stores the data and reveals some statistical
|
5
5
|
measurements for the data. It expects an array or vector of values and generates a vector on demans.
|
6
6
|
=end
|
7
|
-
class Fathom::DataNode < Node
|
7
|
+
class Fathom::DataNode < Fathom::Node
|
8
8
|
|
9
9
|
include NumericMethods
|
10
10
|
|
data/lib/fathom/node/decision.rb
CHANGED
data/lib/fathom/node/fact.rb
CHANGED
data/lib/fathom/node/mc_node.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'fathom'))
|
2
2
|
module Fathom
|
3
3
|
module NumericMethods
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
def initialize(opts={})
|
5
|
+
super(opts)
|
6
|
+
end
|
7
7
|
|
8
8
|
def rand
|
9
9
|
return nil unless vector
|
metadata
CHANGED