HamerlyKMeans< MetricType, MatType > Class Template Reference
|HamerlyKMeans (const MatType &dataset, MetricType &metric)|
|Construct the HamerlyKMeans object, which must store several sets of bounds. More...|
|size_t||DistanceCalculations () const|
|double||Iterate (const arma::mat ¢roids, arma::mat &newCentroids, arma::Col< size_t > &counts)|
|Run a single iteration of Hamerly's algorithm, updating the given centroids into the newCentroids matrix. More...|
class mlpack::kmeans::HamerlyKMeans< MetricType, MatType >
Constructor & Destructor Documentation
|HamerlyKMeans||(||const MatType &||dataset,|
Construct the HamerlyKMeans object, which must store several sets of bounds.
Member Function Documentation
|double Iterate||(||const arma::mat &||centroids,|
|arma::Col< size_t > &||counts|
Run a single iteration of Hamerly's algorithm, updating the given centroids into the newCentroids matrix.
centroids Current cluster centroids. newCentroids New cluster centroids. counts Current counts, to be overwritten with new counts.
The documentation for this class was generated from the following file:
Generated by 1.8.13