kmeans
k-means clustering in C++
Loading...
Searching...
No Matches
kmeans::InitializeNone< Index_, Data_, Cluster_, Float_, Matrix_ > Class Template Referencefinal

No-op "initialization" with existing cluster centers. More...

#include <InitializeNone.hpp>

Inheritance diagram for kmeans::InitializeNone< Index_, Data_, Cluster_, Float_, Matrix_ >:
Collaboration diagram for kmeans::InitializeNone< Index_, Data_, Cluster_, Float_, Matrix_ >:

Additional Inherited Members

- Public Member Functions inherited from kmeans::Initialize< Index_, Data_, Cluster_, Float_, Matrix_ >
virtual Cluster_ run (const Matrix_ &data, Cluster_ num_centers, Float_ *centers) const =0
 

Detailed Description

template<typename Index_, typename Data_, typename Cluster_, typename Float_, class Matrix_ = Matrix<Index_, Data_>>
class kmeans::InitializeNone< Index_, Data_, Cluster_, Float_, Matrix_ >

No-op "initialization" with existing cluster centers.

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 for the cluster assignments.
Float_Floating-point type for the centroids. This will also be used for any internal distance calculations.
Matrix_Class satisfying the Matrix interface.

This class assumes that that cluster centers are already present in the centers array, and returns them without modification.


The documentation for this class was generated from the following file: