cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
random.cpp File Reference
Include dependency graph for random.cpp:

Namespaces

namespace  toolbox
 
namespace  toolbox::utils
 < 用于 std::out_of_range/For std::out_of_range
 

Functions

template std::vector< int > toolbox::utils::random_t::sample< std::vector< int > > (const std::vector< int > &population, size_t k)
 
template std::vector< float > toolbox::utils::random_t::sample< std::vector< float > > (const std::vector< float > &population, size_t k)
 
template std::vector< double > toolbox::utils::random_t::sample< std::vector< double > > (const std::vector< double > &population, size_t k)
 
template std::vector< std::string > toolbox::utils::random_t::sample< std::vector< std::string > > (const std::vector< std::string > &population, size_t k)
 
template int toolbox::utils::random< int > (int, int)
 
template long toolbox::utils::random< long > (long, long)
 
template long long toolbox::utils::random< long long > (long long, long long)
 
template unsigned int toolbox::utils::random< unsigned int > (unsigned int, unsigned int)
 
template unsigned long toolbox::utils::random< unsigned long > (unsigned long, unsigned long)
 
template unsigned long long toolbox::utils::random< unsigned long long > (unsigned long long, unsigned long long)
 
template float toolbox::utils::random< float > (float, float)
 
template double toolbox::utils::random< double > (double, double)
 
template long double toolbox::utils::random< long double > (long double, long double)
 
template int toolbox::utils::random< int > ()
 
template long toolbox::utils::random< long > ()
 
template long long toolbox::utils::random< long long > ()
 
template unsigned int toolbox::utils::random< unsigned int > ()
 
template unsigned long toolbox::utils::random< unsigned long > ()
 
template unsigned long long toolbox::utils::random< unsigned long long > ()
 
template float toolbox::utils::random< float > ()
 
template double toolbox::utils::random< double > ()
 
template long double toolbox::utils::random< long double > ()
 
template float toolbox::utils::uniform< float > (float, float)
 
template double toolbox::utils::uniform< double > (double, double)
 
template long double toolbox::utils::uniform< long double > (long double, long double)
 
template float toolbox::utils::gauss< float > (float, float)
 
template double toolbox::utils::gauss< double > (double, double)
 
template long double toolbox::utils::gauss< long double > (long double, long double)
 
template std::vector< int > toolbox::utils::sample< int > (const std::vector< int > &population, size_t k)
 
template std::vector< float > toolbox::utils::sample< float > (const std::vector< float > &population, size_t k)
 
template std::vector< double > toolbox::utils::sample< double > (const std::vector< double > &population, size_t k)
 
template std::vector< std::string > toolbox::utils::sample< std::string > (const std::vector< std::string > &population, size_t k)
 
template std::vector< int > toolbox::utils::choice_n< int > (const std::vector< int > &container, size_t n)
 
template std::vector< float > toolbox::utils::choice_n< float > (const std::vector< float > &container, size_t n)
 
template std::vector< double > toolbox::utils::choice_n< double > (const std::vector< double > &container, size_t n)
 
template std::vector< std::string > toolbox::utils::choice_n< std::string > (const std::vector< std::string > &container, size_t n)