template<typename Index_, typename Data_, typename Cluster_, typename Float_, class Matrix_ = Matrix<Index_, Data_>>
class kmeans::InitializeRandom< Index_, Data_, Cluster_, Float_, Matrix_ >
Initialize by sampling random observations without replacement.
- Template Parameters
-
Index_ | Integer type of the observation indices. This should be the same as the index type of Matrix_ . |
Data_ | Numeric type of the input dataset. This should be the same as the data type of Matrix_ . |
Cluster_ | Integer type of the cluster assignments. |
Float_ | Floating-point type of the centroids. |
Matrix_ | Class satisfying the Matrix interface. |