aGrUM  0.16.0
multiDimNoisyORNet.h
Go to the documentation of this file.
1 
29 #ifndef GUM_MULTI_DIM_NOISY_OR_NET_H
30 #define GUM_MULTI_DIM_NOISY_OR_NET_H
31 
33 
34 namespace gum {
35 
36  // clang-format off
53  // clang-format on
54  template < typename GUM_SCALAR >
55  class MultiDimNoisyORNet : public MultiDimICIModel< GUM_SCALAR > {
56  public:
57  // ============================================================================
59  // ============================================================================
61 
63  MultiDimNoisyORNet(GUM_SCALAR external_weight,
64  GUM_SCALAR default_weight = (GUM_SCALAR)1.0);
65 
67 
77 
79  virtual ~MultiDimNoisyORNet();
80 
82 
101 
102  // ============================================================================
104  // ============================================================================
106 
107  public:
108  virtual GUM_SCALAR get(const Instantiation& i) const;
109 
110  const std::string toString() const;
111 
113 
124  virtual const std::string& name() const;
125 
127  };
128 
129 
130 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
131  extern template class MultiDimNoisyORNet< double >;
132 #endif
133 
135  template < typename GUM_SCALAR >
136  std::ostream& operator<<(std::ostream& s,
138 
139 } /* namespace gum */
140 
142 
143 #endif /* GUM_MULTI_DIM_NOISY_OR_NET_H */
Noisy OR representation.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Abstract base class for all multi dimensionnal containers.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::ostream & operator<<(std::ostream &output, const BayesNet< GUM_SCALAR > &bn)
Prints map&#39;s DAG in output using the Graphviz-dot format.
Definition: BayesNet_tpl.h:605
abstract class for Conditional Indepency Models
const std::string toString() const
Returns the real name of the multiDimArray.
virtual const std::string & name() const
Returns the real name of the multiDimArray.
virtual MultiDimContainer< GUM_SCALAR > * newFactory() const
This method creates a clone of this object, withouth its content (including variable), you must use this method if you want to ensure that the generated object has the same type than the object containing the called newFactory()
Set of pairs of elements with fast search for both elements.
Definition: bijection.h:1805
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Class for assigning/browsing values to tuples of discrete variables.
Definition: instantiation.h:83
MultiDimNoisyORNet(GUM_SCALAR external_weight, GUM_SCALAR default_weight=(GUM_SCALAR) 1.0)
Default constructor.
virtual ~MultiDimNoisyORNet()
Destructor.