21 #include "../common/exception.hpp" 
   28 namespace clustering {
 
   31     : k_(k), kcenters_(), mapper_(), gmm_() {
 
   67     const wplist& points)
 const {
 
   72     const wplist& points)
 const {
 
   73   std::vector<wplist> ret(
k_);
 
   74   for (wplist::const_iterator it = points.begin(); it != points.end(); ++it) {
 
   76     ret[c].push_back(*it);
 
void batch(const eigen_wsvec_list_t &data, int d, int k)
eigen_svec_t convertc(const common::sfv_t &src) const 
wplist get_cluster(size_t cluster_id, const wplist &points) const 
eigen_feature_mapper mapper_
gmm_clustering_method(size_t k)
int64_t get_nearest_center_index(const eigen_svec_t &p) const 
void batch_update(wplist points)
std::vector< wplist > get_clusters(const wplist &points) const 
wplist revert(const eigen_wsvec_list_t &src) const 
eigen_svec_t get_nearest_center(const eigen_svec_t &p) const 
eigen_svec_list_t get_centers()
std::vector< common::sfv_t > kcenters_
int64_t get_nearest_center_index(const common::sfv_t &point) const 
common::sfv_t get_nearest_center(const common::sfv_t &point) const 
void online_update(wplist points)
std::vector< std::pair< std::string, float > > sfv_t
std::vector< common::sfv_t > get_k_center() const 
std::vector< eigen_wsvec_t > eigen_wsvec_list_t
eigen_wsvec_list_t convert(const wplist &src, bool update_map=true)
std::vector< weighted_point > wplist