-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.c
156 lines (156 loc) · 5.6 KB
/
test.c
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#include "test.h"
int y_test[N_TEST] = { 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1};
float X_test[N_TEST][N_FEATURE] = { { 44.0, 21.0, 25.0, 36.0 },
{ 152.0, 34.0, 34.2, 33.0 },
{ 112.0, 30.0, 31.6, 25.0 },
{ 61.0, 28.0, 34.4, 46.0 },
{ 95.0, 13.0, 19.6, 25.0 },
{ 102.0, 39.0, 35.7, 28.0 },
{ 103.0, 33.0, 24.0, 33.0 },
{ 100.0, 23.0, 29.7, 21.0 },
{ 152.0, 33.0, 26.8, 43.0 },
{ 100.0, 26.0, 30.8, 21.0 },
{ 91.0, 24.0, 29.2, 21.0 },
{ 78.0, 29.0, 36.9, 21.0 },
{ 88.0, 24.0, 29.9, 23.0 },
{ 97.0, 32.0, 40.9, 32.0 },
{ 132.0, 21.0, 32.4, 21.0 },
{ 92.0, 20.0, 24.2, 28.0 },
{ 101.0, 17.0, 24.2, 23.0 },
{ 122.0, 27.0, 36.8, 27.0 },
{ 100.0, 28.0, 37.8, 24.0 },
{ 128.0, 21.0, 34.3, 24.0 },
{ 103.0, 38.0, 43.3, 33.0 },
{ 191.0, 15.0, 30.9, 34.0 },
{ 83.0, 26.0, 29.3, 36.0 },
{ 82.0, 21.0, 21.1, 25.0 },
{ 131.0, 14.0, 23.7, 21.0 },
{ 129.0, 7.0, 19.6, 60.0 },
{ 175.0, 30.0, 33.6, 38.0 },
{ 100.0, 20.0, 32.9, 28.0 },
{ 112.0, 50.0, 39.4, 24.0 },
{ 90.0, 18.0, 25.1, 25.0 },
{ 122.0, 31.0, 27.6, 45.0 },
{ 105.0, 21.0, 30.05, 24.0 },
{ 163.0, 41.0, 40.9, 47.0 },
{ 110.0, 21.0, 37.6, 30.0 },
{ 118.0, 19.0, 23.1, 46.0 },
{ 99.0, 10.0, 25.4, 21.0 },
{ 158.0, 36.0, 31.6, 28.0 },
{ 171.0, 27.0, 43.6, 26.0 },
{ 98.0, 17.0, 34.7, 22.0 },
{ 75.0, 21.0, 33.3, 38.0 },
{ 187.0, 27.0, 43.6, 53.0 },
{ 160.0, 32.0, 30.5, 39.0 },
{ 114.0, 17.0, 23.8, 31.0 },
{ 123.0, 45.0, 33.6, 34.0 },
{ 109.0, 21.0, 42.7, 54.0 },
{ 146.0, 27.0, 28.9, 27.0 },
{ 111.0, 13.0, 24.0, 23.0 },
{ 151.0, 40.0, 41.8, 38.0 },
{ 161.0, 27.0, 30.4, 47.0 },
{ 140.0, 26.0, 42.6, 24.0 },
{ 151.0, 46.0, 42.1, 21.0 },
{ 189.0, 25.0, 34.3, 41.0 },
{ 107.0, 30.0, 36.6, 25.0 },
{ 128.0, 45.0, 40.5, 24.0 },
{ 100.0, 60.0, 46.8, 31.0 },
{ 93.0, 32.0, 38.0, 23.0 },
{ 114.0, 21.0, 27.8, 66.0 },
{ 155.0, 27.0, 38.7, 25.0 },
{ 111.0, 21.0, 26.2, 23.0 },
{ 170.0, 37.0, 34.5, 30.0 },
{ 91.0, 21.0, 24.2, 58.0 },
{ 106.0, 21.0, 37.5, 26.0 },
{ 179.0, 31.0, 34.2, 60.0 },
{ 87.0, 34.0, 37.6, 24.0 },
{ 100.0, 29.0, 32.0, 42.0 },
{ 91.0, 25.0, 25.2, 23.0 },
{ 137.0, 41.0, 32.0, 39.0 },
{ 150.0, 29.0, 35.2, 54.0 },
{ 131.0, 27.0, 43.2, 26.0 },
{ 87.0, 18.0, 21.8, 21.0 },
{ 179.0, 27.0, 44.1, 23.0 },
{ 107.0, 19.0, 28.3, 29.0 },
{ 164.0, 27.0, 32.8, 45.0 },
{ 154.0, 29.0, 31.3, 37.0 },
{ 133.0, 21.0, 27.0, 36.0 },
{ 100.0, 33.0, 30.0, 46.0 },
{ 124.0, 13.0, 21.8, 21.0 },
{ 130.0, 23.0, 28.6, 21.0 },
{ 162.0, 27.0, 37.7, 52.0 },
{ 110.0, 29.0, 32.4, 27.0 },
{ 134.0, 27.0, 23.8, 60.0 },
{ 147.0, 27.0, 29.5, 50.0 },
{ 144.0, 27.0, 33.9, 40.0 },
{ 100.0, 12.0, 25.3, 28.0 },
{ 102.0, 20.0, 30.8, 26.0 },
{ 172.0, 49.0, 42.4, 28.0 },
{ 94.0, 18.0, 31.6, 23.0 },
{ 85.0, 21.0, 30.1, 35.0 },
{ 171.0, 33.0, 33.3, 24.0 },
{ 147.0, 54.0, 42.8, 24.0 },
{ 163.0, 18.0, 31.6, 28.0 },
{ 151.0, 38.0, 29.7, 36.0 },
{ 87.0, 27.0, 34.6, 22.0 },
{ 106.0, 21.0, 25.8, 27.0 },
{ 190.0, 27.0, 35.5, 66.0 },
{ 121.0, 27.0, 36.0, 25.0 },
{ 112.0, 27.0, 37.8, 41.0 },
{ 106.0, 54.0, 36.6, 45.0 },
{ 137.0, 21.0, 24.2, 55.0 },
{ 129.0, 28.0, 35.9, 39.0 },
{ 106.0, 18.0, 22.7, 48.0 },
{ 164.0, 21.0, 30.8, 32.0 },
{ 111.0, 21.0, 24.6, 31.0 },
{ 133.0, 15.0, 32.4, 37.0 },
{ 173.0, 33.0, 35.7, 22.0 },
{ 99.0, 19.0, 25.6, 24.0 },
{ 81.0, 41.0, 46.3, 32.0 },
{ 125.0, 24.0, 24.3, 25.0 },
{ 169.0, 19.0, 29.9, 31.0 },
{ 105.0, 41.0, 41.5, 22.0 },
{ 174.0, 37.0, 44.5, 24.0 },
{ 143.0, 23.0, 42.4, 22.0 },
{ 137.0, 27.0, 27.3, 59.0 },
{ 114.0, 21.0, 21.9, 37.0 },
{ 112.0, 22.0, 25.0, 24.0 },
{ 108.0, 10.0, 25.3, 22.0 },
{ 114.0, 21.0, 24.9, 57.0 },
{ 123.0, 32.0, 42.1, 26.0 },
{ 103.0, 21.0, 24.3, 29.0 },
{ 149.0, 29.0, 29.3, 42.0 },
{ 133.0, 21.0, 40.2, 37.0 },
{ 81.0, 15.0, 30.1, 25.0 },
{ 139.0, 21.0, 27.1, 57.0 },
{ 122.0, 27.0, 33.3, 33.0 },
{ 151.0, 32.0, 42.9, 36.0 },
{ 181.0, 42.0, 40.0, 22.0 },
{ 95.0, 25.0, 35.0, 43.0 },
{ 152.0, 39.0, 41.5, 27.0 },
{ 91.0, 32.0, 39.9, 25.0 },
{ 99.0, 17.0, 25.6, 28.0 },
{ 128.0, 39.0, 36.5, 37.0 },
{ 91.0, 21.0, 35.6, 68.0 },
{ 96.0, 13.0, 21.1, 26.0 },
{ 80.0, 11.0, 30.0, 22.0 },
{ 88.0, 11.0, 24.8, 22.0 },
{ 97.0, 23.0, 28.2, 22.0 },
{ 103.0, 30.0, 27.6, 27.0 },
{ 139.0, 21.0, 25.6, 29.0 },
{ 120.0, 27.0, 30.0, 38.0 },
{ 85.0, 21.0, 39.6, 27.0 },
{ 143.0, 22.0, 26.2, 21.0 },
{ 94.0, 27.0, 43.5, 21.0 },
{ 128.0, 41.0, 32.0, 33.0 },
{ 119.0, 21.0, 25.2, 37.0 },
{ 135.0, 46.0, 40.6, 26.0 },
{ 89.0, 21.0, 22.5, 33.0 },
{ 107.0, 20.0, 24.7, 22.0 },
{ 166.0, 19.0, 25.8, 51.0 },
{ 119.0, 39.0, 45.6, 29.0 },
{ 158.0, 21.0, 29.8, 63.0 },
{ 131.0, 27.0, 31.6, 32.0 },
{ 114.0, 34.0, 44.2, 27.0 },
{ 80.0, 31.0, 34.2, 27.0 },
{ 129.0, 36.0, 41.2, 38.0 } };