|
mlpack
master
|
Public Member Functions | |
| 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... | |
Private Attributes | |
| arma::Col< size_t > | assignments |
| Assignments for each point. More... | |
| const MatType & | dataset |
| The dataset. More... | |
| size_t | distanceCalculations |
| Track distance calculations. More... | |
| arma::vec | lowerBounds |
| Lower bounds for each point. More... | |
| MetricType & | metric |
| The instantiated metric. More... | |
| arma::vec | minClusterDistances |
| Minimum cluster distances from each cluster. More... | |
| arma::vec | upperBounds |
| Upper bounds for each point. More... | |
Definition at line 19 of file hamerly_kmeans.hpp.
| mlpack::kmeans::HamerlyKMeans< MetricType, MatType >::HamerlyKMeans | ( | const MatType & | dataset, |
| MetricType & | metric | ||
| ) |
Construct the HamerlyKMeans object, which must store several sets of bounds.
|
inline |
Definition at line 40 of file hamerly_kmeans.hpp.
References mlpack::kmeans::HamerlyKMeans< MetricType, MatType >::distanceCalculations.
| double mlpack::kmeans::HamerlyKMeans< MetricType, MatType >::Iterate | ( | const arma::mat & | centroids, |
| arma::mat & | newCentroids, | ||
| 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. |
|
private |
Assignments for each point.
Definition at line 56 of file hamerly_kmeans.hpp.
|
private |
The dataset.
Definition at line 44 of file hamerly_kmeans.hpp.
|
private |
Track distance calculations.
Definition at line 59 of file hamerly_kmeans.hpp.
Referenced by mlpack::kmeans::HamerlyKMeans< MetricType, MatType >::DistanceCalculations().
|
private |
Lower bounds for each point.
Definition at line 54 of file hamerly_kmeans.hpp.
|
private |
The instantiated metric.
Definition at line 46 of file hamerly_kmeans.hpp.
|
private |
Minimum cluster distances from each cluster.
Definition at line 49 of file hamerly_kmeans.hpp.
|
private |
Upper bounds for each point.
Definition at line 52 of file hamerly_kmeans.hpp.
1.8.11