![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
The union class for storing the translated values in learning databases. More...
#include <agrum/base/database/DBTranslatedValue.h>
Public Member Functions | |
Constructors / Destructors | |
| constexpr | DBTranslatedValue () |
| default constructor: stores discrete value 0 | |
| constexpr | DBTranslatedValue (const float &val) |
| the constructor for storing a continuous value | |
| constexpr | DBTranslatedValue (const std::size_t &val) |
| the constructor for storing a discrete value | |
| ~DBTranslatedValue () | |
| destructor | |
Public Attributes | |
| std::size_t | discr_val |
| the field for storing discrete values | |
| float | cont_val |
| the field for storing continuous values | |
The union class for storing the translated values in learning databases.
In aGrUM, learning is performed on datasets that are preprocessed, i.e., their values are encoded in such a way that learning is fast. More precisely, the values of discrete random variables are encoded as integers ranging from 0 to the domain size minus 1 of the variable, and the values of continuous random variables are encoded as floating point numbers. Missing values are encoded as std::numeric_limits<>::max() over these types. The DBTranslatedValue class is the representation of these types.
Definition at line 88 of file DBTranslatedValue.h.
|
inlineconstexpr |
default constructor: stores discrete value 0
Definition at line 102 of file DBTranslatedValue.h.
References discr_val.
|
inlineconstexpr |
the constructor for storing a continuous value
Definition at line 105 of file DBTranslatedValue.h.
References cont_val.
|
inlineconstexpr |
the constructor for storing a discrete value
Definition at line 108 of file DBTranslatedValue.h.
References discr_val.
|
inline |
| float gum::learning::DBTranslatedValue::cont_val |
the field for storing continuous values
Definition at line 93 of file DBTranslatedValue.h.
Referenced by DBTranslatedValue().
| std::size_t gum::learning::DBTranslatedValue::discr_val |
the field for storing discrete values
Definition at line 90 of file DBTranslatedValue.h.
Referenced by DBTranslatedValue(), and DBTranslatedValue().