aGrUM  0.16.0
IDiscretizedVariable.h
Go to the documentation of this file.
1 
23 #ifndef GUM_I_DISCRETIZED_VARIABLE_H
24 #define GUM_I_DISCRETIZED_VARIABLE_H
25 
26 #include <iostream>
27 #include <vector>
28 
29 #include <agrum/agrum.h>
30 
32 
33 namespace gum {
34 
41  public:
42  // ############################################################################
44  // ############################################################################
46 
48  IDiscretizedVariable(const std::string& aName, const std::string& aDesc);
49 
57 
59  virtual ~IDiscretizedVariable();
60 
62  virtual IDiscretizedVariable* clone() const = 0;
63 
65 
66 
67  // ############################################################################
69  // ############################################################################
71 
73  virtual std::vector< double > ticksAsDoubles() const = 0;
74 
76 
77 
78  protected:
81  };
82 
83 
84 } /* namespace gum */
85 
86 
87 #ifndef GUM_NO_INLINE
89 #endif /* GUM_NO_INLINE */
90 
91 #endif /* GUM_I_DISCRETIZED_VARIABLE_H */
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
virtual ~IDiscretizedVariable()
destructor
virtual std::vector< double > ticksAsDoubles() const =0
return the list of ticks as a vector of doubles
virtual IDiscretizedVariable * clone() const =0
Copy Factory.
IDiscretizedVariable & operator=(const IDiscretizedVariable &from)
copy operator
IDiscretizedVariable(const std::string &aName, const std::string &aDesc)
Default constructor.
A base class for discretized variables, independent of the ticks type.