28 #ifndef GUM_LEARNING_DB_TRANSLATOR_4_CONTINUOUS_VARIABLE_H 29 #define GUM_LEARNING_DB_TRANSLATOR_4_CONTINUOUS_VARIABLE_H 126 template <
template <
typename >
class ALLOC = std::allocator >
153 template <
template <
typename >
class XALLOC >
155 const std::vector< std::string, XALLOC< std::string > >& missing_symbols,
156 const bool fit_range =
false,
172 const bool fit_range =
false,
189 template <
typename GUM_SCALAR,
template <
typename >
class XALLOC >
192 const std::vector< std::string, XALLOC< std::string > >& missing_symbols,
193 const bool fit_range =
false,
210 template <
typename GUM_SCALAR >
213 const bool fit_range =
false,
230 template <
template <
typename >
class XALLOC >
233 const std::vector< std::string, XALLOC< std::string > >& missing_symbols,
234 const bool fit_range =
false,
253 const bool fit_range =
false,
366 ALLOC<
std::pair<
std::
size_t,
std::
size_t > > >
378 #ifndef DOXYGEN_SHOULD_SKIP_THIS 394 __status_float_missing_symbols;
398 std::string __nonfloat_missing_symbol;
virtual DBTranslatedValue translate(const std::string &str) final
returns the translation of a string
Defines a continuous random variable.
virtual ~DBTranslator4ContinuousVariable()
destructor
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods
typename DBTranslator< ALLOC >::allocator_type allocator_type
type for the allocators passed in arguments of methods
A base class for continuous variables, independent of the GUM_SCALAR type.
virtual DBTranslator4ContinuousVariable< ALLOC > * clone() const
virtual copy constructor
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The union class for storing the translated values in learning databases.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The class for generic Hash Tables.
DBTranslator4ContinuousVariable< ALLOC > & operator=(const DBTranslator4ContinuousVariable< ALLOC > &from)
copy operator
virtual std::size_t domainSize() const final
returns std::numeric_limits<std::size_t>::max ()
DBTranslator4ContinuousVariable(const std::vector< std::string, XALLOC< std::string > > &missing_symbols, const bool fit_range=false, const allocator_type &alloc=allocator_type())
default constructor without any initial variable
virtual bool needsReordering() const final
indicates that the translations should never be reordered
The base class for all the tabular database cell translators.
virtual HashTable< std::size_t, std::size_t, ALLOC< std::pair< std::size_t, std::size_t > > > reorder() final
returns an empty mapping, indicating that old tanslations are equal to the newly reordered ones...
virtual std::string translateBack(const DBTranslatedValue translated_val) const final
returns the original value for a given translation
The databases' cell translators for continuous variables.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual const IContinuousVariable * variable() const final
returns the variable stored into the translator
virtual DBTranslatedValue missingValue() const final
returns the translation of a missing value