aGrUM  0.16.0
multiDimNoisyAND.h
Go to the documentation of this file.
1 
29 #ifndef GUM_MULTI_DIM_NOISY_AND_H
30 #define GUM_MULTI_DIM_NOISY_AND_H
31 
33 
34 namespace gum {
35 
36  // clang-format off
53  // clang-format on
54  template < typename GUM_SCALAR >
55  class MultiDimNoisyAND : public MultiDimICIModel< GUM_SCALAR > {
56  public:
57  // ============================================================================
59  // ============================================================================
61 
66  MultiDimNoisyAND(GUM_SCALAR external_weight,
67  GUM_SCALAR default_weight = (GUM_SCALAR)1.0);
68 
70 
79  const MultiDimNoisyAND< GUM_SCALAR >& from);
80 
84  virtual ~MultiDimNoisyAND();
85 
87 
106 
107  // ============================================================================
109  // ============================================================================
111 
112  public:
113  virtual GUM_SCALAR get(const Instantiation& i) const;
114 
115  const std::string toString() const;
116 
128  virtual const std::string& name() const;
129 
131  };
132 
133 
134 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
135  extern template class MultiDimNoisyAND< double >;
136 #endif
137 
139  template < typename GUM_SCALAR >
140  std::ostream& operator<<(std::ostream& s,
142 
143 } /* namespace gum */
144 
146 
147 #endif /* GUM_MULTI_DIM_NOISY_AND_H */
virtual const std::string & name() const
Returns the real name of the multiDimArray.
MultiDimNoisyAND(GUM_SCALAR external_weight, GUM_SCALAR default_weight=(GUM_SCALAR) 1.0)
Default constructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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 ~MultiDimNoisyAND()
Destructor.
Set of pairs of elements with fast search for both elements.
Definition: bijection.h:1805
Noisy AND representation.
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()
Class for assigning/browsing values to tuples of discrete variables.
Definition: instantiation.h:83