Sha256: 89745ee18b7bed1a45946eb0ff5851f77990a097a3f6cdaf2a686ffc4828dbcd
Contents?: true
Size: 1.78 KB
Versions: 1
Compression:
Stored size: 1.78 KB
Contents
# ================ # = Dependencies = # ================ # Make decoupling easier with an informed LoadPath $:.unshift(File.dirname(__FILE__)) $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'fathom'))) require "gsl" require 'ostruct' require 'options_hash' # Fix a few bugs in OpenStruct class OpenStruct def table @table end def values @table.values end def keys @table.keys end end module Fathom lib = File.expand_path(File.dirname(__FILE__)) $LOAD_PATH.unshift(lib) # Autoload classes and modules so that we only load as much of the library as we're using. # This allows us to have a fairly large library without taking up a lot of memory unless we need it. autoload :Inverter, "inverter" autoload :BasicNode, "basic_node" autoload :PlausibleRange, "plausible_range" autoload :R, "plausible_range" # autoload :LowerBound, "lower_bound" # autoload :UpperBound, "upper_bound" # autoload :Distribution, "distribution" # autoload :DependencyGraph, "dependency_graph" autoload :ValueDescription, "value_description" autoload :ValueAggregator, "value_aggregator" autoload :ValueMultiplier, "value_multiplier" autoload :MonteCarloSet, "monte_carlo_set" autoload :CombinedPlausibilities, "combined_plausibilities" autoload :CausalGraph, "causal_graph" autoload :DataNode, "data_node" autoload :KnowledgeBase, "knowledge_base" autoload :Import, "import" autoload :YAMLImport, 'import/yaml_import' autoload :CSVImport, 'import/csv_import' autoload :RDFImport, 'import/rdf_import' autoload :SQLiteImport, 'import/sqlite_import' autoload :NodeUtilities, 'node_utilities' def knowledge_base @knowledge_base ||= KnowledgeBase.new end end # Temporary include Fathom def r @r ||= R.new(:min => 1, :max => 10) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fathom-0.1.0 | lib/fathom.rb |