kmeans
k-means clustering in C++
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_>
20struct Details {
24 Details() = default;
25
26 Details(const int iterations, const int status) : sizes(0), iterations(iterations), status(status) {}
27
28 Details(std::vector<Index_> sizes, const int iterations, const int status) : sizes(std::move(sizes)), iterations(iterations), status(status) {}
40 std::vector<Index_> sizes;
41
46 int iterations = 0;
47
53 int status = 0;
54};
55
56}
57
58#endif
59
Perform k-means clustering.
Definition compute_wcss.hpp:16
Additional statistics from the k-means algorithm.
Definition Details.hpp:20
std::vector< Index_ > sizes
Definition Details.hpp:40
int status
Definition Details.hpp:53
int iterations
Definition Details.hpp:46