-
Notifications
You must be signed in to change notification settings - Fork 0
/
flame.h
55 lines (40 loc) · 994 Bytes
/
flame.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
#ifndef FLAME_H
#define FLAME_H
#define EPSILON 1E-9
#include <utility>
enum FlameObjectTypes
{
OBT_NORMAL ,
OBT_SUPPORT ,
OBT_OUTLIER
};
class Flame
{
public:
void partialQuickSort( int first, int last, int part );
void defineSupports( int knn, float thd );
void localApproximation(int p_steps, float p_epsilon );
void makeClusters( float p_thd );
int getCsoCount() { return m_cso_count; }
int getN() { return m_N; }
int* getClusters() { return m_clusters; }
Flame() {}// a bunch of nullptr's
Flame(float** p_data, int p_n , int p_m);
~Flame();
private:
int m_N;
int m_M;
int m_K;
int m_KMAX;
int **m_graph;
float **m_dists;
int *m_nncounts;
float **m_weights;
int m_cso_count;
char *m_obtypes;
float **m_fuzzyships;
int m_count;
int *m_clusters;
std::pair<int, float>* m_indexFloatArray;
};
#endif // FLAME_H