-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathData.h
More file actions
executable file
·59 lines (39 loc) · 853 Bytes
/
Data.h
File metadata and controls
executable file
·59 lines (39 loc) · 853 Bytes
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
58
59
#ifndef DATA
#define DATA
#include <stdbool.h>
struct Metric_Data{
double mean;
double var;
double std;
double max;
double min;
};
struct Pattern_Range{
double min;
double max;
};
struct Node{
double pattern[19];
double bitstring[19];
double affinity;
double fitness;
double radius;
double cost;
bool instance_class; // normal-> false / anomaly-> true
int counter;
int correct; // Number of anomalies correctly identified ceil
int confirm;
double seconds_elapsed;
struct Node* next;
struct Node* memory_cells;
struct Node* best_detector;
char src_ip[50];
char dst_ip[50];
};
typedef struct cells{
double pattern[19];
int confirm;
}cells;
typedef struct Pattern_Range pattern_range;
typedef struct Metric_Data metric_data;
#endif