9 #define MAX_NUMBER_STRING_SIZE 32 
   20     enum NormType {NORM_LINF = 0, NORM_L1 = 1, NORM_L2 = 2};
 
   21     typedef std::vector<std::vector<double> > dMatrix;
 
   24          void  printConfusionMatrix(
const std::vector<int>& classes, 
const std::vector<std::string>& classes_names, 
const std::vector<std::vector<size_t> > &confusion_m, 
bool show_names=
false);
 
   37         int  stoin(std::string str);
 
   44         double  atod(
const char* str);
 
   51         std::string  
itos(
int n);
 
   58         std::string  
dtoa(
double n);
 
   60         std::vector<std::string> tokenize(
const std::string &str, 
const char delim);
 
   62         std::string timestamp();
 
   65         static inline void ltrim(std::string &s) {
 
   66             s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](
unsigned char ch) {
 
   67                 return !std::isspace(ch);
 
   72         static inline void rtrim(std::string &s) {
 
   73             s.erase(std::find_if(s.rbegin(), s.rend(), [](
unsigned char ch) {
 
   74                 return !std::isspace(ch);
 
   79         static inline void trim(std::string &s) {
 
   85         static inline std::string ltrim_copy(std::string s) {
 
   91         static inline std::string rtrim_copy(std::string s) {
 
   97         static inline std::string trim_copy(std::string s) {
 
std::string dtoa(double n)
dtoa Double to string conversion.
Definition: Utils.cpp:94
 
double atod(const char *str)
Converts the string to a double.
Definition: Utils.cpp:40
 
int stoin(std::string str)
Converts the string to an integer.
Definition: Utils.cpp:20
 
bool is_number(std::string str)
Verify if the string is a number.
Definition: Utils.cpp:15
 
std::string itos(int n)
itos Integer to string conversion.
Definition: Utils.cpp:60
 
UFJF-MLTK main namespace for core functionalities.
Definition: classifier/Classifier.hpp:11