13 #ifndef MLPACK_METHODS_DBSCAN_DBSCAN_HPP 14 #define MLPACK_METHODS_DBSCAN_DBSCAN_HPP 50 template<
typename RangeSearchType = range::RangeSearch<>,
51 typename Po
intSelectionPolicy = OrderedPo
intSelection>
68 DBSCAN(
const double epsilon,
69 const size_t minPoints,
70 const bool batchMode =
true,
71 RangeSearchType rangeSearch = RangeSearchType(),
72 PointSelectionPolicy pointSelector = PointSelectionPolicy());
82 template<
typename MatType>
83 size_t Cluster(
const MatType& data,
84 arma::mat& centroids);
95 template<
typename MatType>
96 size_t Cluster(
const MatType& data,
97 arma::Row<size_t>& assignments);
109 template<
typename MatType>
110 size_t Cluster(
const MatType& data,
111 arma::Row<size_t>& assignments,
112 arma::mat& centroids);
126 RangeSearchType rangeSearch;
129 PointSelectionPolicy pointSelector;
141 template<
typename MatType>
142 void PointwiseCluster(
const MatType& data,
154 template<
typename MatType>
155 void BatchCluster(
const MatType& data,
163 #include "dbscan_impl.hpp"
A Union-Find data structure.
DBSCAN (Density-Based Spatial Clustering of Applications with Noise) is a clustering technique descri...
Linear algebra utility functions, generally performed on matrices or vectors.
size_t Cluster(const MatType &data, arma::mat ¢roids)
Performs DBSCAN clustering on the data, returning number of clusters and also the centroid of each cl...
DBSCAN(const double epsilon, const size_t minPoints, const bool batchMode=true, RangeSearchType rangeSearch=RangeSearchType(), PointSelectionPolicy pointSelector=PointSelectionPolicy())
Construct the DBSCAN object with the given parameters.
Include all of the base components required to write mlpack methods, and the main mlpack Doxygen docu...