kmeans
k-means clustering in C++
Loading...
Searching...
No Matches
compute_wcss.hpp File Reference

Compute within-cluster sum of squares. More...

#include <algorithm>
#include <cstddef>
#include "sanisizer/sanisizer.hpp"
#include "utils.hpp"
Include dependency graph for compute_wcss.hpp:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Compute within-cluster sum of squares.