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& alloc) :
48 DBTranslator< ALLOC >(DBTranslatedValueType::CONTINUOUS,
53 _variable_(
"var",
""), _fit_range_(fit_range) {
61 for (
auto iter =
this->missing_symbols_.beginSafe(); iter !=
this->missing_symbols_.endSafe();
63 if (DBCell::isReal(*iter)) {
this->missing_symbols_.erase(iter); }
68 if (!
this->missing_symbols_.empty()) {
69 _nonfloat_missing_symbol_ = *(
this->missing_symbols_.begin());
75 if (_fit_range_) _variable_.setLowerBound(std::numeric_limits<
float >::infinity());
78 _real_variable_ = _variable_.clone();
80 GUM_CONSTRUCTOR(DBTranslator4ContinuousVariable);
85 template <
template <
typename >
class ALLOC >
104 template <
template <
typename >
class ALLOC >
148 template <
template <
typename >
class ALLOC >
170 template <
template <
typename >
class ALLOC >
171 template <
template <
typename >
class XALLOC >
214 template <
template <
typename >
class ALLOC >
235 template <
template <
typename >
class ALLOC >
251 template <
template <
typename >
class ALLOC >
258 template <
template <
typename >
class ALLOC >
276 template <
template <
typename >
class ALLOC >
283 template <
template <
typename >
class ALLOC >
299 template <
template <
typename >
class ALLOC >
307 template <
template <
typename >
class ALLOC >
316 template <
template <
typename >
class ALLOC >
335 template <
template <
typename >
class ALLOC >
355 template <
template <
typename >
class ALLOC >
363 "String \"" <<
str <<
"\" cannot be translated because it is not a number");
382 <<
"\" cannot be translated because it is " 383 "out of the domain of the continuous variable");
413 "String \"" <<
str <<
"\" cannot be translated because " 414 <<
"it would induce a new domain containing an already " 415 <<
"translated missing symbol");
446 "String \"" <<
str <<
"\" cannot be translated because " 447 <<
"it would induce a new domain containing an already " 448 <<
"translated missing symbol");
476 template <
template <
typename >
class ALLOC >
487 "The back translation of " 489 <<
" could not be found because the value is outside the " 490 <<
"domain of the continuous variable");
500 template <
template <
typename >
class ALLOC >
507 template <
template <
typename >
class ALLOC >
517 template <
template <
typename >
class ALLOC >
524 template <
template <
typename >
class ALLOC >
533 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)