1 #ifndef GENESIS_TREE_MASS_TREE_KMEANS_H_ 2 #define GENESIS_TREE_MASS_TREE_KMEANS_H_ 90 virtual void pre_loop_hook(
91 std::vector<Point>
const& data,
96 virtual bool data_validation( std::vector<Point>
const& data )
const override;
98 virtual void update_centroids(
99 std::vector<Point>
const& data,
104 virtual double distance(
Point const& lhs,
Point const& rhs )
const override;
110 size_t accumulate_centroid_masses_ = 1;
117 #endif // include guard std::vector< MassTree > const & centroids() const
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
std::vector< size_t > const & assignments() const
Tree MassTree
Alias for a Tree that stores masses on its TreeEdges.
Class for representing phylogenetic trees.
size_t accumulate_centroid_masses() const
MassTreeKmeans & operator=(MassTreeKmeans const &)=default
virtual ~MassTreeKmeans() override=default