Teh first one
[mldemos:kalians-mldemos.git] / _AlgorithmsPlugins / KernelMethods / dlib / test / conditioning_class.cpp
1 // Copyright (C) 2003  Davis E. King (davis@dlib.net)\r
2 // License: Boost Software License   See LICENSE.txt for the full license.\r
3 \r
4 \r
5 #include <sstream>\r
6 #include <string>\r
7 #include <ctime>\r
8 #include <cstdlib>\r
9 \r
10 #include <dlib/conditioning_class.h>\r
11 \r
12 #include "tester.h"\r
13 #include "conditioning_class.h"\r
14 \r
15 namespace  \r
16 {\r
17 \r
18 \r
19     class conditioning_class_tester : public tester\r
20     {\r
21     public:\r
22         conditioning_class_tester (\r
23         ) :\r
24             tester ("test_conditioning_class",\r
25                     "Runs tests on the conditioning_class component.")\r
26         {}\r
27 \r
28         void perform_test (\r
29         )\r
30         {\r
31             dlog << LINFO << "testing kernel_1a";\r
32             conditioning_class_kernel_test<\r
33                 conditioning_class<256>::kernel_1a,\r
34                 conditioning_class<2>::kernel_1a\r
35                 >();\r
36             print_spinner();\r
37 \r
38             dlog << LINFO << "testing kernel_2a";\r
39             conditioning_class_kernel_test<\r
40                 conditioning_class<256>::kernel_2a,\r
41                 conditioning_class<2>::kernel_2a\r
42                 >();\r
43             print_spinner();\r
44 \r
45             dlog << LINFO << "testing kernel_3a";\r
46             conditioning_class_kernel_test<\r
47                 conditioning_class<256>::kernel_3a,\r
48                 conditioning_class<2>::kernel_3a\r
49                 >();\r
50             print_spinner();\r
51 \r
52             dlog << LINFO << "testing kernel_4a";\r
53             conditioning_class_kernel_test<\r
54                 conditioning_class<256>::kernel_4a,\r
55                 conditioning_class<2>::kernel_4a\r
56                 >();\r
57             print_spinner();\r
58 \r
59             dlog << LINFO << "testing kernel_4b";\r
60             conditioning_class_kernel_test<\r
61                 conditioning_class<256>::kernel_4b,\r
62                 conditioning_class<2>::kernel_4b\r
63                 >();\r
64             print_spinner();\r
65 \r
66             dlog << LINFO << "testing kernel_4c";\r
67             conditioning_class_kernel_test<\r
68                 conditioning_class<256>::kernel_4c,\r
69                 conditioning_class<2>::kernel_4c\r
70                 >();\r
71             print_spinner();\r
72 \r
73             dlog << LINFO << "testing kernel_4d";\r
74             conditioning_class_kernel_test<\r
75                 conditioning_class<256>::kernel_4d,\r
76                 conditioning_class<2>::kernel_4d\r
77                 >();\r
78             print_spinner();\r
79 \r
80 \r
81         }\r
82     } a;\r
83 \r
84 \r
85 }\r
86 \r