|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Namespace for global math functions. More...
Mean, Median, and Standard Derivation | |
| template<typename R , typename T , template< typename, typename > class Container> | |
| R | avg (const Container< T, std::allocator< T >> &values) |
| template<typename R , typename T , template< typename, typename > class Container> | |
| R | median (Container< T, std::allocator< T >> &values) |
| template<typename R , typename T , template< typename, typename > class Container> | |
| R | variance (R mean, Container< T, std::allocator< T >> &values) |
| Calculates the variance from the given mean of all elements in the given container. More... | |
| template<typename R , typename T , template< typename, typename > class Container> | |
| R | variance (Container< T, std::allocator< T >> &values) |
Floating-Point Number Comparison | |
| template<typename T > | |
| std::enable_if<!std::numeric_limits< T >::is_integer, bool >::type | almostEqual (T x, T y, int ulp) |
| Compares two floating-point values using epsilon. More... | |
Namespace for global math functions.
| std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type crawlservpp::Helper::Math::almostEqual | ( | T | x, |
| T | y, | ||
| int | ulp | ||
| ) |
Compares two floating-point values using epsilon.
Original: https://en.cppreference.com/w/cpp/types/numeric_limits/epsilon
| x,y | Floating-point numbers to compare. |
| ulp | Desired precision in ULPs (units in the last place). |
Referenced by crawlservpp::Module::Analyzer::Algo::TopicModelling::resetAlgo().
| R crawlservpp::Helper::Math::avg | ( | const Container< T, std::allocator< T >> & | values | ) |
Calculates the average (mean) of all elements in the given container.
| values | Constant reference to the container. |
Referenced by variance().
| R crawlservpp::Helper::Math::median | ( | Container< T, std::allocator< T >> & | values | ) |
Calculates the median of all elements in the given container.
| values | Reference to the container. |
| R crawlservpp::Helper::Math::variance | ( | R | mean, |
| Container< T, std::allocator< T >> & | values | ||
| ) |
Calculates the variance from the given mean of all elements in the given container.
| mean | Mean of all elements in the container. |
| values | Reference to the container. |
Referenced by variance().
| R crawlservpp::Helper::Math::variance | ( | Container< T, std::allocator< T >> & | values | ) |
Calculates the variance of all elements in the given container.
| values | Reference to the container. |
References avg(), and variance().