Docs
Loading...
Searching...
No Matches
ClusterInfo.hpp
Go to the documentation of this file.
1
11
12#pragma once
13
14#include <Eigen/Dense>
15
25
26public:
27 ClusterInfo() = default;
28
36 virtual void set_allocation(int index, int cluster, int old_cluster) = 0;
37
43 virtual void recompute(const int K, const Eigen::VectorXi &allocations) = 0;
44
50 virtual void move_cluster_info(int from_cluster, int to_cluster) = 0;
51
56 virtual void remove_info(int cluster) = 0;
57
58 virtual ~ClusterInfo() = default;
59};
virtual void move_cluster_info(int from_cluster, int to_cluster)=0
Moves cluster information from one cluster to another.
ClusterInfo()=default
virtual void remove_info(int cluster)=0
Removes information related to a specific cluster.
virtual ~ClusterInfo()=default
virtual void recompute(const int K, const Eigen::VectorXi &allocations)=0
Recomputes all cluster information from current allocations.
virtual void set_allocation(int index, int cluster, int old_cluster)=0
Assigns a point to a cluster.