1#ifndef KMEANS_INITIALIZE_HPP
2#define KMEANS_INITIALIZE_HPP
26template<
typename Index_,
typename Data_,
typename Cluster_,
typename Float_,
class Matrix_ = Matrix<Data_, Index_> >
39 static_assert(std::is_same<decltype(std::declval<Matrix_>().num_observations()), Index_>::value);
40 static_assert(std::is_same<typename std::remove_pointer<decltype(std::declval<Matrix_>().new_extractor()->get_observation(0))>::type,
const Data_>::value);
56 virtual Cluster_
run(
const Matrix_& data, Cluster_ num_centers, Float_* centers)
const = 0;
Interface for matrix inputs.
Interface for k-means initialization algorithms.
Definition Initialize.hpp:27
virtual Cluster_ run(const Matrix_ &data, Cluster_ num_centers, Float_ *centers) const =0
Namespace for k-means clustering.
Definition compute_wcss.hpp:12