crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
Math.hpp File Reference
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <limits>
#include <memory>
#include <numeric>
#include <type_traits>
#include <vector>
Include dependency graph for Math.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 crawlservpp::Helper::Math
 Namespace for global math functions.
 

Mean, Median, and Standard Derivation

template<typename R , typename T , template< typename, typename > class Container>
crawlservpp::Helper::Math::avg (const Container< T, std::allocator< T >> &values)
 
template<typename R , typename T , template< typename, typename > class Container>
crawlservpp::Helper::Math::median (Container< T, std::allocator< T >> &values)
 
template<typename R , typename T , template< typename, typename > class Container>
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. More...
 
template<typename R , typename T , template< typename, typename > class Container>
crawlservpp::Helper::Math::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 crawlservpp::Helper::Math::almostEqual (T x, T y, int ulp)
 Compares two floating-point values using epsilon. More...