26 template <
typename math_t>
 
   27 void initShuffle(std::vector<math_t>& rand_indices, std::mt19937& g, math_t random_state = 0)
 
   29   g.seed((
int)random_state);
 
   30   for (std::size_t i = 0; i < rand_indices.size(); ++i)
 
   34 template <
typename math_t>
 
   35 void shuffle(std::vector<math_t>& rand_indices, std::mt19937& g)
 
   37   std::shuffle(rand_indices.begin(), rand_indices.end(), g);
 
void shuffle(std::vector< math_t > &rand_indices, std::mt19937 &g)
Definition: shuffle.h:35
 
void initShuffle(std::vector< math_t > &rand_indices, std::mt19937 &g, math_t random_state=0)
Definition: shuffle.h:27
 
Definition: dbscan.hpp:29