7 #ifndef MLPACK_METHODS_DBSCAN_RANDOM_POINT_SELECTION_HPP 8 #define MLPACK_METHODS_DBSCAN_RANDOM_POINT_SELECTION_HPP 11 #include <boost/dynamic_bitset.hpp> 28 template<
typename MatType>
29 static size_t Select(
const boost::dynamic_bitset<>& unvisited,
32 const size_t max = unvisited.count();
37 for (
size_t i = 0; i < unvisited.size(); ++i)
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
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.
static size_t Select(const boost::dynamic_bitset<> &unvisited, const MatType &)
Select the next point to use, randomly.