1#ifndef KMEANS_INITIALIZE_HPP 
    2#define KMEANS_INITIALIZE_HPP 
   28template<
typename Index_, 
typename Data_, 
typename Cluster_, 
typename Float_, 
class Matrix_ = Matrix<Index_, Data_> >
 
   41    static_assert(std::is_same<I<decltype(std::declval<Matrix_>().num_observations())>, Index_>::value);
 
   42    static_assert(std::is_same<I<decltype(*(std::declval<Matrix_>().new_extractor()->get_observation(0)))>, Data_>::value);
 
   58    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:29
 
virtual Cluster_ run(const Matrix_ &data, Cluster_ num_centers, Float_ *centers) const =0
 
Perform k-means clustering.
Definition compute_wcss.hpp:16