kmeans
A C++ library for k-means
Loading...
Searching...
No Matches
Initialize.hpp
Go to the documentation of this file.
1#ifndef KMEANS_INITIALIZE_HPP
2#define KMEANS_INITIALIZE_HPP
3
4#include "SimpleMatrix.hpp"
5
11namespace kmeans {
12
21template<class Matrix_ = SimpleMatrix<double, int>, typename Cluster_ = int, typename Float_ = double>
23public:
27 virtual ~Initialize() = default;
43 virtual Cluster_ run(const Matrix_& data, Cluster_ num_centers, Float_* centers) const = 0;
44};
45
46}
47
48#endif
Wrapper for a simple dense matrix.
Base class for initialization algorithms.
Definition Initialize.hpp:22
virtual Cluster_ run(const Matrix_ &data, Cluster_ num_centers, Float_ *centers) const =0
Namespace for k-means clustering.
Definition compute_wcss.hpp:12