kmeans
k-means clustering in C++
|
Compute within-cluster sum of squares. More...
#include <algorithm>
#include <cstddef>
#include "sanisizer/sanisizer.hpp"
#include "utils.hpp"
Go to the source code of this file.
Namespaces | |
namespace | kmeans |
Perform k-means clustering. | |
Functions | |
template<class Matrix_ , typename Cluster_ , typename Float_ > | |
void | kmeans::compute_wcss (const Matrix_ &data, const Cluster_ num_centers, const Float_ *const centers, const Cluster_ *const clusters, Float_ *const wcss) |
Compute within-cluster sum of squares.