aGrUM  0.16.0
multiDimNoisyORCompound.h
Go to the documentation of this file.
1 
30 #ifndef GUM_MULTI_DIM_NOISY_OR_COMPOUND_H
31 #define GUM_MULTI_DIM_NOISY_OR_COMPOUND_H
32 
34 
35 namespace gum {
36 
37  // ===========================================================================
38  // === GUM_MULTI_DIM_NOISYOR_COMPOU ===
39  // ===========================================================================
40  // clang-format off
57  // clang-format on
58  template < typename GUM_SCALAR >
59 
60  class MultiDimNoisyORCompound : public MultiDimICIModel< GUM_SCALAR > {
61  public:
62  // ============================================================================
64  // ============================================================================
66 
68  MultiDimNoisyORCompound(GUM_SCALAR external_weight,
69  GUM_SCALAR default_weight = (GUM_SCALAR)1.0);
70 
72 
82 
84  virtual ~MultiDimNoisyORCompound();
85 
87 
102 
103  // ############################################################################
105  // ############################################################################
107 
108  public:
109  virtual GUM_SCALAR get(const Instantiation& i) const;
110 
111  const std::string toString() const;
112 
114 
124  virtual const std::string& name() const;
125 
127  };
128 
129 
130 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
131  extern template class MultiDimNoisyORCompound< 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_COMPOUND_H */
virtual const std::string & name() const
returns the real name of the multiDimArray
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
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() For example : MultiDimArray<double> y; MultiDimContainer<double>* x = y.newFactory(); Then x is a MultiDimArray<double>*.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
abstract class for Conditional Indepency Models
Set of pairs of elements with fast search for both elements.
Definition: bijection.h:1805
virtual ~MultiDimNoisyORCompound()
Destructor.
const std::string toString() const
returns the real name of the multiDimArray
Class for assigning/browsing values to tuples of discrete variables.
Definition: instantiation.h:83
MultiDimNoisyORCompound(GUM_SCALAR external_weight, GUM_SCALAR default_weight=(GUM_SCALAR) 1.0)
Default constructor.