-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCluster.h
57 lines (46 loc) · 940 Bytes
/
Cluster.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef CLUSTER_H
#define CLUSTER_H
#include "DataTypes.h"
#include "Point.h"
class Cluster
{
int ID;
public:
DoubleVector centroid;
public:
/*!
* Constructor.
* @param centroid the centroid of the Cluster.
* @param ID the ID of the cluster.
*/
Cluster(DoubleVector& centroid, int ID);
/*!
* Destructor.
*/
~Cluster();
/*!
* Sets the ID of the Cluster.
* @param ID the ID of the Cluster.
*/
void setID(int ID);
/*!
* Returns the ID of the Cluster.
* @return the ID of the Cluster.
*/
int getID() const;
/*!
* Sets the centroid of the Cluster.
* @param centroid the centroid of the Cluster.
*/
void setCentroid(DoubleVector& centroid);
/*!
* Returns the centroid of the Cluster.
* @return the centroid of the Cluster.
*/
DoubleVector* getCentroid();
/*!
* Prints to the standard output the centroid of the Cluster.
*/
void printCentroid();
};
#endif // CLUSTER_H