47#ifndef GUM_LEARNING_DB_TRANSLATOR_4_CONTINUOUS_VARIABLE_H
48#define GUM_LEARNING_DB_TRANSLATOR_4_CONTINUOUS_VARIABLE_H
165 const bool fit_range =
false);
191 template < GUM_Numeric GUM_SCALAR >
193 const std::vector< std::string >& missing_symbols,
194 const bool fit_range =
false);
208 template < GUM_Numeric GUM_SCALAR >
210 const bool fit_range =
false);
225 const std::vector< std::string >& missing_symbols,
226 const bool fit_range =
false);
342#ifndef DOXYGEN_SHOULD_SKIP_THIS
361 std::string _nonfloat_missing_symbol_;
The databases' cell translators for continuous variables.
The base class for all the tabular databases' cell translators.
Defines a continuous random variable.
The class for generic Hash Tables.
A base class for continuous variables, independent of the GUM_SCALAR type.
DBTranslator4ContinuousVariable(const std::vector< std::string > &missing_symbols, const bool fit_range=false)
default constructor without any initial variable
DBTranslator4ContinuousVariable(const ContinuousVariable< GUM_SCALAR > &var, const bool fit_range=false)
default constructor with a continuous variable as translator but without missing symbol
std::size_t domainSize() const final
returns std::numeric_limits<std::size_t>::max ()
const IContinuousVariable * variable() const final
returns the variable stored into the translator
HashTable< std::size_t, std::size_t > reorder() final
returns an empty mapping, indicating that old tanslations are equal to the newly reordered ones.
std::string translateBack(const DBTranslatedValue translated_val) const final
returns the original value for a given translation
DBTranslator4ContinuousVariable & operator=(const DBTranslator4ContinuousVariable &from)
copy operator
bool needsReordering() const final
indicates that the translations should never be reordered
DBTranslator4ContinuousVariable(const IContinuousVariable &var, const bool fit_range=false)
default constructor with a IContinuous variable as translator but without missing symbol
DBTranslator4ContinuousVariable * clone() const override
virtual copy constructor
~DBTranslator4ContinuousVariable() override
destructor
DBTranslatedValue translate(std::string_view str) final
returns the translation of a string
DBTranslator4ContinuousVariable(const IContinuousVariable &var, const std::vector< std::string > &missing_symbols, const bool fit_range=false)
default constructor with a IContinuous variable as translator
DBTranslator4ContinuousVariable & operator=(DBTranslator4ContinuousVariable &&from)
move operator
DBTranslator4ContinuousVariable(DBTranslator4ContinuousVariable &&from)
move constructor
DBTranslator4ContinuousVariable(const DBTranslator4ContinuousVariable &from)
copy constructor
DBTranslator4ContinuousVariable(const ContinuousVariable< GUM_SCALAR > &var, const std::vector< std::string > &missing_symbols, const bool fit_range=false)
default constructor with a continuous variable as translator
DBTranslatedValue missingValue() const final
returns the translation of a missing value
DBTranslator4ContinuousVariable(const bool fit_range=false)
default constructor without any initial variable nor missing symbol
DBTranslator(DBTranslatedValueType val_type, const bool is_lossless, const std::vector< std::string > &missing_symbols, const bool editable_dictionary=true, std::size_t max_dico_entries=std::numeric_limits< std::size_t >::max())
default constructor
Header of ContinuousVariable.
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
The union class for storing the translated values in learning databases.