17 #ifndef JUBATUS_CORE_DRIVER_CLUSTERING_HPP_
18 #define JUBATUS_CORE_DRIVER_CLUSTERING_HPP_
22 #include "jubatus/util/lang/shared_ptr.h"
23 #include "../clustering/types.hpp"
24 #include "../framework/mixable.hpp"
25 #include "../fv_converter/datum.hpp"
26 #include "../fv_converter/mixable_weight_manager.hpp"
31 namespace fv_converter {
33 class datum_to_fv_converter;
35 namespace clustering {
43 jubatus::util::lang::shared_ptr<core::clustering::clustering>
45 jubatus::util::lang::shared_ptr<fv_converter::datum_to_fv_converter>
49 void push(
const std::vector<fv_converter::datum>& points);
61 void unpack(msgpack::object o);
74 std::pair<double, fv_converter::datum>
77 const std::vector<common::sfv_t>& src)
const;
79 const std::vector<fv_converter::datum>& src);
81 const std::vector<core::clustering::weighted_point>& src)
const;
83 jubatus::util::lang::shared_ptr<fv_converter::datum_to_fv_converter>
85 jubatus::util::lang::shared_ptr<core::clustering::clustering>
clustering_;
93 #endif // JUBATUS_CORE_DRIVER_CLUSTERING_HPP_
core::clustering::weighted_point to_weighted_point(const fv_converter::datum &src)
common::sfv_t to_sfv(const fv_converter::datum &dat)
fv_converter::datum to_datum(const common::sfv_t &src) const
core::clustering::cluster_unit get_nearest_members(const fv_converter::datum &point) const
std::vector< cluster_unit > cluster_set
core::clustering::cluster_set get_core_members() const
fv_converter::datum get_nearest_center(const fv_converter::datum &point) const
size_t get_revision() const
std::vector< std::pair< cluster_weight, jubatus::core::fv_converter::datum > > cluster_unit
std::vector< fv_converter::datum > get_k_center() const
std::vector< core::clustering::weighted_point > to_weighted_point_vector(const std::vector< fv_converter::datum > &src)
void pack(framework::packer &pk) const
std::pair< double, fv_converter::datum > to_weighted_datum(const core::clustering::weighted_point &src) const
std::vector< fv_converter::datum > to_datum_vector(const std::vector< common::sfv_t > &src) const
jubatus::util::lang::shared_ptr< fv_converter::datum_to_fv_converter > converter_
fv_converter::mixable_weight_manager wm_
jubatus::util::lang::shared_ptr< core::clustering::clustering > clustering_
clustering(jubatus::util::lang::shared_ptr< core::clustering::clustering > clustering_method, jubatus::util::lang::shared_ptr< fv_converter::datum_to_fv_converter > converter)
common::sfv_t to_sfv_const(const fv_converter::datum &dat) const
std::vector< std::pair< std::string, float > > sfv_t
core::clustering::cluster_unit to_weighted_datum_vector(const std::vector< core::clustering::weighted_point > &src) const
void push(const std::vector< fv_converter::datum > &points)
void unpack(msgpack::object o)