-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinitialization.h
25 lines (20 loc) · 935 Bytes
/
initialization.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
#ifndef Included_INITIALIZATION_H
#define Included_INITIALIZATION_H
#include "kMedoids.h"
#include "centroid.h"
#include "clusterNode.h"
#include "List.h"
template <class T>
class Initialization //class gia thn arxikopoihsh twn clusters, periexei ths 2 me8odous arxikopoihshs (k-medoids++ kai concentrate) kai mia sunarthsh pou xrhsimopoieitai sto clara
{
private:
KMedoids<T>* kMedoids;
int binarySearch(double* distances, double searchPoint, int start, int end); //sunarthsh gia to k-medoids++
public:
Initialization(KMedoids<T>* kMedoid); //constructor
~Initialization(); //destructor
void initializationPP(List<ClusterNode<T>*>* points); //arxikopoihsh me k-medoids++
void initializationConcetrate(List<ClusterNode<T>*>* points); //arxikopoihsh me concentrate
void initializationRandom(List<ClusterNode<T>*>* points); //sunarthsh gia th me8odo clara
};
#endif