aGrUM  0.16.0
multiDimLogit.h
Go to the documentation of this file.
1 
29 #ifndef GUM_MULTI_DIM_LOGIT_H
30 #define GUM_MULTI_DIM_LOGIT_H
31 
33 
34 namespace gum {
35 
52  template < typename GUM_SCALAR >
53  class MultiDimLogit : public MultiDimICIModel< GUM_SCALAR > {
54  public:
55  // ============================================================================
57  // ============================================================================
59 
65  MultiDimLogit(GUM_SCALAR external_weight,
66  GUM_SCALAR default_weight = (GUM_SCALAR)0.0);
67 
69 
78  const MultiDimLogit< GUM_SCALAR >& from);
79 
81  virtual ~MultiDimLogit();
82 
84 
100 
101  // ============================================================================
103  // ============================================================================
105 
106  public:
107  virtual GUM_SCALAR get(const Instantiation& i) const;
108 
109  const std::string toString() const;
110 
122  virtual const std::string& name() const;
123 
125  };
126 
127 
128 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
129  extern template class MultiDimLogit< double >;
130 #endif
131 
133  template < typename GUM_SCALAR >
134  std::ostream& operator<<(std::ostream& s, const MultiDimLogit< GUM_SCALAR >& ag);
135 
136 } /* namespace gum */
137 
139 
140 #endif /* GUM_MULTI_DIM_LOGIT_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.
const std::string toString() const
Returns the real name of the multiDimArray.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Logit representation.
Definition: multiDimLogit.h:53
abstract class for Conditional Indepency Models
Set of pairs of elements with fast search for both elements.
Definition: bijection.h:1805
Class for assigning/browsing values to tuples of discrete variables.
Definition: instantiation.h:83
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()
virtual ~MultiDimLogit()
Destructor.
MultiDimLogit(GUM_SCALAR external_weight, GUM_SCALAR default_weight=(GUM_SCALAR) 0.0)
Default constructor.