kmeans
A C++ library for k-means
Loading...
Searching...
No Matches
Details.hpp
Go to the documentation of this file.
1#ifndef KMEANS_DETAILS_HPP
2#define KMEANS_DETAILS_HPP
3
4#include <vector>
5
12namespace kmeans {
13
19template<typename Index_ = int>
20struct Details {
24 Details() = default;
25
27
28 Details(std::vector<Index_> sizes, int iterations, int status) : sizes(std::move(sizes)), iterations(iterations), status(status) {}
37 std::vector<Index_> sizes;
38
43 int iterations = 0;
44
50 int status = 0;
51};
52
53}
54
55#endif
56
Namespace for k-means clustering.
Definition compute_wcss.hpp:12
Additional statistics from the k-means algorithm.
Definition Details.hpp:20
std::vector< Index_ > sizes
Definition Details.hpp:37
int status
Definition Details.hpp:50
int iterations
Definition Details.hpp:43