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 CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -1,6 +1,6 @@
1
1
  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'fathom'))
2
2
  module Fathom
3
- class Invertor < Node
3
+ class Invertor < Fathom::Node
4
4
 
5
5
  def initialize(opts={})
6
6
  super(opts)
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom'))
2
- class Fathom::ImportNode < Node
2
+ class Fathom::ImportNode < Fathom::Node
3
3
 
4
4
  attr_reader :imported_at
5
5
 
@@ -1,7 +1,7 @@
1
1
  require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom'))
2
2
 
3
3
  # Conditional Probability Matrix to join two nodes
4
- class Fathom::CPMNode < Node
4
+ class Fathom::CPMNode < Fathom::Node
5
5
 
6
6
  def initialize(opts={})
7
7
  ensure_belief_nodes(opts)
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom'))
2
- class Fathom::Decision < Node
2
+ class Fathom::Decision < Fathom::Node
3
3
  undef_method :values
4
4
  undef_method :distribution
5
5
  end
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom'))
2
- class Fathom::DiscreteNode < Node
2
+ class Fathom::DiscreteNode < Fathom::Node
3
3
  attr_reader :labels
4
4
 
5
5
  def initialize(opts={})
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom'))
2
- class Fathom::Fact < Node
2
+ class Fathom::Fact < Fathom::Node
3
3
 
4
4
  attr_reader :value
5
5
 
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom'))
2
- class Fathom::MCNode < Node
2
+ class Fathom::MCNode < Fathom::Node
3
3
 
4
4
  attr_reader :value_description, :samples_taken
5
5
 
@@ -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
- # def initialize(opts={})
5
- # super(opts)
6
- # end
4
+ def initialize(opts={})
5
+ super(opts)
6
+ end
7
7
 
8
8
  def rand
9
9
  return nil unless vector
@@ -1,6 +1,6 @@
1
1
  require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom'))
2
2
  module Fathom
3
- class PlausibleRange < Node
3
+ class PlausibleRange < Fathom::Node
4
4
 
5
5
  include NumericMethods
6
6
 
@@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
2
2
 
3
3
  include Fathom::Distributions
4
4
 
5
- class DemoEnforcedNameNode < Node
5
+ class DemoEnforcedNameNode < Fathom::Node
6
6
  include EnforcedName
7
7
  end
8
8
 
@@ -1,6 +1,6 @@
1
1
  module Fathom
2
2
  module Distributions
3
- class DummyNumericNode < Node
3
+ class DummyNumericNode < Fathom::Node
4
4
  include NumericMethods
5
5
  end
6
6
  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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - David