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 for the observation indices in the input dataset. |
Data_ | Numeric type for the input dataset. |
Cluster_ | Integer type for the cluster assignments. |
Float_ | Floating-point type for the centroids. This will also be used for any internal distance calculations. |
Matrix_ | Class of the input data matrix. This should satisfy the Matrix interface. |