12 #ifndef MLPACK_METHODS_DBSCAN_RANDOM_POINT_SELECTION_HPP
13 #define MLPACK_METHODS_DBSCAN_RANDOM_POINT_SELECTION_HPP
16 #include <boost/dynamic_bitset.hpp>
33 template<
typename MatType>
34 static size_t Select(
const boost::dynamic_bitset<>& unvisited,
37 const size_t max = unvisited.count();
42 for (
size_t i = 0; i < unvisited.size(); ++i)
The core includes that mlpack expects; standard C++ includes and Armadillo.
static size_t Select(const boost::dynamic_bitset<> &unvisited, const MatType &)
Select the next point to use, randomly.
int RandInt(const int hiExclusive)
Generates a uniform random integer.
This class can be used to randomly select the next point to use for DBSCAN.