|
| std::pair< double, double > | dot (Vector< Vector< double > > matrix, std::pair< double, double > &v) |
| | Compute the dot product of a 2x2 matrix and a 2D vector.
|
| |
| double | dot (std::pair< double, double > &u, std::pair< double, double > &v) |
| | Compute the dot product of two 2D vectors.
|
| |
| double | cross (std::pair< double, double > &u, std::pair< double, double > &v) |
| | Compute the cross product of two 2D vectors.
|
| |
| double | getDistanceByTwoCoordinates (const std::pair< double, double > &position1, const std::pair< double, double > &position2) |
| | Computes the Euclidean distance between two coordinates.
|
| |
| double | power (double base, int exponent) |
| | Powers.
|
| |
template<typename T >
requires std::is_arithmetic<T> |
| ::value std::string | thousandSeparator (T n, int decimals=3) |
| | Convert a plain numeric value to thousand separated value.
|
| |
| template<typename T > |
| std::string | formatDuration (T seconds) |
| | Format duration.
|
| |
| std::string | getFilenameWithoutExtension (std::string path) |
| |
| std::string | getPrefix (std::string str) |
| |
| Vector< double > | splitStringToDoubleVector (const std::string &input, char delimiter=',') |
| | Splits string to double vector.
|
| |
| Vector< int > | splitStringToIntVector (const std::string &str) |
| | The function stringToIntVector takes a string as input and converts it into a Vector<int> by parsing the string for comma-separated integers and pushing each one onto the vector.
|
| |
| Vector< std::string > | split (const std::string &s, char delimiter) |
| | This function is splitting a given string "s" into substrings using a delimiter "delimiter" and returning the resulting substrings as a vector of strings.
|
| |
| Vector< int > | convertStringVectorToIntVector (const std::vector< std::string > &stringVector) |
| |
| std::string | trim (const std::string &str) |
| | This function trim takes in a string str and returns a copy of it with leading and trailing white spaces removed.
|
| |
| bool | writeToFile (std::stringstream &s, std::string filename) |
| |
| template<typename... Args> |
| std::stringstream | convertTupleToStringStream (const std::tuple< Args... > &t, int limit, std::string delim="\t") |
| |
| template<typename Tuple , size_t... Indices> |
| void | addTupleValuesToStreamImpl (const Tuple &t, std::stringstream &ss, std::index_sequence< Indices... >, int limit, std::string delim) |
| |
| template<typename T > |
| void | writeToStream (const T &value, std::stringstream &ss, std::string delim) |
| |
| std::string | removeLastWord (const std::string &originalString) |
| |
| QVector< double > | convertQStringVectorToDouble (const QVector< QString > &stringVector) |
| |
| QVector< double > | subtractQVector (const QVector< double > l1, const QVector< double > l2) |
| |
| QVector< double > | factorQVector (const QVector< double > l1, const double factor) |
| |
| Vector< std::pair< std::string, std::string > > | splitStringStream (std::stringstream &ss, const std::string &delimiter=":") |
| |
| std::string | replaceAll (std::string str, const std::string &from, const std::string &to) |
| |