1#ifndef KMEANS_REFINE_HPP
2#define KMEANS_REFINE_HPP
25template<
typename Index_,
typename Data_,
typename Cluster_,
typename Float_,
typename Matrix_ = Matrix<Index_, Data_> >
38 static_assert(std::is_same<decltype(std::declval<Matrix_>().num_observations()), Index_>::value);
39 static_assert(std::is_same<typename std::remove_pointer<decltype(std::declval<Matrix_>().new_extractor()->get_observation(0))>::type,
const Data_>::value);
57 virtual Details<Index_> run(
const Matrix_& data, Cluster_ num_centers, Float_* centers, Cluster_* clusters)
const = 0;
Report detailed clustering statistics.
Interface for matrix inputs.
Interface for k-means refinement algorithms.
Definition Refine.hpp:26
virtual Details< Index_ > run(const Matrix_ &data, Cluster_ num_centers, Float_ *centers, Cluster_ *clusters) const =0
Namespace for k-means clustering.
Definition compute_wcss.hpp:12
Additional statistics from the k-means algorithm.
Definition Details.hpp:20