Docs
Toggle main menu visibility
Loading...
Searching...
No Matches
ClusterInfo.hpp
Go to the documentation of this file.
1
11
12
#pragma once
13
14
#include <Eigen/Dense>
15
#include <unordered_map>
16
#include <vector>
17
26
class
ClusterInfo
{
27
28
public
:
29
ClusterInfo
() =
default
;
30
38
virtual
void
set_allocation
(
int
index,
int
cluster,
int
old_cluster) = 0;
39
45
virtual
void
recompute
(
const
int
K,
const
Eigen::VectorXi &allocations) = 0;
46
52
virtual
void
move_cluster_info
(
int
from_cluster,
int
to_cluster) = 0;
53
58
virtual
void
remove_info
(
int
cluster) = 0;
59
60
virtual
~ClusterInfo
() =
default
;
61
};
ClusterInfo::move_cluster_info
virtual void move_cluster_info(int from_cluster, int to_cluster)=0
Moves cluster information from one cluster to another.
ClusterInfo::ClusterInfo
ClusterInfo()=default
ClusterInfo::remove_info
virtual void remove_info(int cluster)=0
Removes information related to a specific cluster.
ClusterInfo::~ClusterInfo
virtual ~ClusterInfo()=default
ClusterInfo::recompute
virtual void recompute(const int K, const Eigen::VectorXi &allocations)=0
Recomputes all cluster information from current allocations.
ClusterInfo::set_allocation
virtual void set_allocation(int index, int cluster, int old_cluster)=0
Assigns a point to a cluster.
BNPClust
utils
ClusterInfo.hpp
Generated by
1.17.0