#include <genesis/tree/mass_tree/kmeans.hpp>
Inherits Kmeans< MassTree >.
Definition at line 53 of file tree/mass_tree/kmeans.hpp.
|
std::function< void(void)> | report_initialization |
|
std::function< void(size_t i)> | report_iteration |
|
virtual bool | assign_to_centroids (std::vector< MassTree > const &data, std::vector< MassTree > const ¢roids, std::vector< size_t > &assignments) |
|
virtual KmeansClusteringInfo | cluster_info (std::vector< MassTree > const &data, std::vector< size_t > const &assignments, std::vector< MassTree > const ¢roids) const |
|
virtual bool | data_validation (std::vector< MassTree > const &data) const |
|
virtual double | distance (MassTree const &lhs, MassTree const &rhs) const=0 |
|
virtual std::pair< size_t, double > | find_nearest_cluster (std::vector< MassTree > const ¢roids, MassTree const &datum) const |
|
virtual void | initialize (std::vector< MassTree > const &data, size_t const k) |
|
virtual bool | lloyd_step (std::vector< MassTree > const &data, std::vector< size_t > &assignments, std::vector< MassTree > ¢roids) |
|
virtual void | post_loop_hook (std::vector< MassTree > const &data, std::vector< size_t > &assignments, std::vector< MassTree > ¢roids) |
|
virtual void | pre_loop_hook (std::vector< MassTree > const &data, std::vector< size_t > &assignments, std::vector< MassTree > ¢roids) |
|
virtual bool | treat_empty_centroids (std::vector< MassTree > const &data, std::vector< size_t > &assignments, std::vector< MassTree > ¢roids, std::unordered_set< size_t > const &empty_centroids) |
|
virtual void | update_centroids (std::vector< MassTree > const &data, std::vector< size_t > const &assignments, std::vector< MassTree > ¢roids)=0 |
|
◆ MassTreeKmeans() [1/3]
◆ ~MassTreeKmeans()
◆ MassTreeKmeans() [2/3]
◆ MassTreeKmeans() [3/3]
◆ accumulate_centroid_masses() [1/2]
size_t accumulate_centroid_masses |
( |
| ) |
const |
◆ accumulate_centroid_masses() [2/2]
void accumulate_centroid_masses |
( |
size_t |
value | ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Point
The documentation for this class was generated from the following files: