15 template <
typename math_t>
16 void initShuffle(std::vector<math_t>& rand_indices, std::mt19937& g, math_t random_state = 0)
18 g.seed((
int)random_state);
19 for (std::size_t i = 0; i < rand_indices.size(); ++i)
23 template <
typename math_t>
24 void shuffle(std::vector<math_t>& rand_indices, std::mt19937& g)
26 std::shuffle(rand_indices.begin(), rand_indices.end(), g);
void shuffle(std::vector< math_t > &rand_indices, std::mt19937 &g)
Definition: shuffle.h:24
void initShuffle(std::vector< math_t > &rand_indices, std::mt19937 &g, math_t random_state=0)
Definition: shuffle.h:16
Definition: dbscan.hpp:18