27 #ifndef DOXYGEN_SHOULD_SKIP_THIS 33 # include <agrum/tools/database/DBTranslator4ContinuousVariable.h> 34 # include <agrum/tools/database/DBCell.h> 42 template <
template <
typename >
class ALLOC >
43 template <
template <
typename >
class XALLOC >
44 DBTranslator4ContinuousVariable< ALLOC >::DBTranslator4ContinuousVariable(
45 const std::vector< std::string, XALLOC< std::string > >& missing_symbols,
47 const typename DBTranslator4ContinuousVariable< ALLOC >::allocator_type&
49 DBTranslator< ALLOC >(DBTranslatedValueType::CONTINUOUS,
54 variable__(
"var",
""), fit_range__(fit_range) {
62 for (
auto iter =
this->missing_symbols_.beginSafe();
63 iter !=
this->missing_symbols_.endSafe();
65 if (DBCell::isReal(*iter)) {
this->missing_symbols_.erase(iter); }
70 if (!
this->missing_symbols_.empty()) {
71 nonfloat_missing_symbol__ = *(
this->missing_symbols_.begin());
78 variable__.setLowerBound(std::numeric_limits<
float >::infinity());
81 real_variable__ = variable__.clone();
83 GUM_CONSTRUCTOR(DBTranslator4ContinuousVariable);
88 template <
template <
typename >
class ALLOC >
112 template <
template <
typename >
class ALLOC >
158 template <
template <
typename >
class ALLOC >
184 template <
template <
typename >
class ALLOC >
185 template <
template <
typename >
class XALLOC >
230 template <
template <
typename >
class ALLOC >
255 template <
template <
typename >
class ALLOC >
273 template <
template <
typename >
class ALLOC >
280 template <
template <
typename >
class ALLOC >
300 template <
template <
typename >
class ALLOC >
308 template <
template <
typename >
class ALLOC >
326 template <
template <
typename >
class ALLOC >
334 template <
template <
typename >
class ALLOC >
344 template <
template <
typename >
class ALLOC >
364 template <
template <
typename >
class ALLOC >
386 template <
template <
typename >
class ALLOC >
397 <<
"\" cannot be translated because it is not a number");
418 <<
"\" cannot be translated because it is " 419 "out of the domain of the continuous variable");
450 <<
str <<
"\" cannot be translated because " 451 <<
"it would induce a new domain containing an already " 452 <<
"translated missing symbol");
484 <<
str <<
"\" cannot be translated because " 485 <<
"it would induce a new domain containing an already " 486 <<
"translated missing symbol");
514 template <
template <
typename >
class ALLOC >
526 "The back translation of " 528 <<
" could not be found because the value is outside the " 529 <<
"domain of the continuous variable");
539 template <
template <
typename >
class ALLOC >
546 template <
template <
typename >
class ALLOC >
558 template <
template <
typename >
class ALLOC >
566 template <
template <
typename >
class ALLOC >
576 template <
template <
typename >
class ALLOC >
INLINE void emplace(Args &&... args)
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)