Template Class nc_cluster
Defined in File cluster.hpp
Class Documentation
-
template<typename T, typename Policy>
class nc_cluster A cluster representation for NC clustering algorithms.
Public Functions
-
inline nc_cluster(uint id, const std::vector<T> &data, membership_type<Policy> &membership)
-
inline void add_point(size_t idx)
-
template<typename U = T, typename std::enable_if<std::is_floating_point<U>::value, int>::type = 0>
inline bool converged(int = 0) const
-
template<typename U = T, typename std::enable_if<!std::is_floating_point<U>::value, int>::type = 0>
inline bool converged(void) const
-
nc_cluster &operator=(const nc_cluster&) = delete
-
inline void update_center(void)
Update the center (mean) of the points in the cluster after an iteration is finished.
-
inline nc_cluster(uint id, const std::vector<T> &data, membership_type<Policy> &membership)