utils.hpp
Go to the documentation of this file.
bool isCloseEnough(double x1, double x2, int n)
Function checks if difference between two numbers is small enough.
Definition: utils.cpp:23
double convertStr2Dbl(std::string input)
Function converts string to double.
Definition: utils.cpp:57
Definition: cadHoliday.cpp:3
std::string convertDbl2Str(double input)
Function converts double to string.
Definition: utils.cpp:73
File contains definition of date class.
void writeToCsv(std::string file_name, std::map< std::string, std::vector< double > > data)
Function saves data to csv file.
Definition: utils.cpp:108
double roundNumber(double x, int n)
Function rounds number to a decimal place.
Definition: utils.cpp:42
std::pair< std::string, std::string > catchDataAndSettingFileNames(int ac, char *av[])
Function uses boost::program_options to catch the name of data and setting file.
Definition: utils.cpp:146