Class: Fathom::DataCollection

Inherits:
DiscreteNode show all
Defined in:
lib/fathom/node/data_collection.rb

Instance Attribute Summary

Attributes inherited from DiscreteNode

#labels

Attributes inherited from Node

#description, #distribution, #name, #values

Instance Method Summary collapse

Methods inherited from DiscreteNode

#likelihood, #rand, #size

Methods inherited from Node

#add_child, #add_parent, #children, #inspect, #name_sym, #parents, #register_child, #register_parent, #simple_inspect

Constructor Details

#initialize(opts = {}) ⇒ DataCollection

Returns a new instance of DataCollection.



18
19
20
21
22
# File 'lib/fathom/node/data_collection.rb', line 18

def initialize(opts={})
  opts = extract_labels(opts)
  opts[:name] ||= UUID.generate
  super(opts)
end