Revision 1234, 1.4 kB
(checked in by sindj, 14 years ago)
|
Dokonceni triangulaci a progresu vertexu v robustlib. JS
|
Line | |
---|
1 | |
---|
2 | /*! |
---|
3 | \file |
---|
4 | \brief Robust |
---|
5 | \author Vasek Smidl |
---|
6 | |
---|
7 | */ |
---|
8 | |
---|
9 | #include "robustlib.h" |
---|
10 | #include <vector> |
---|
11 | using namespace itpp; |
---|
12 | |
---|
13 | using namespace bdm; |
---|
14 | |
---|
15 | int main ( int argc, char* argv[] ) { |
---|
16 | |
---|
17 | emlig* emlig1 = new emlig(3); |
---|
18 | |
---|
19 | //emlig1->step_me(0); |
---|
20 | |
---|
21 | for(int i = 0;i<500;i++) |
---|
22 | { |
---|
23 | cout << "Step:" << i << endl; |
---|
24 | |
---|
25 | double condition[9]; |
---|
26 | |
---|
27 | condition[0] = rand()/1000.0; |
---|
28 | condition[1] = rand()/1000.0; |
---|
29 | condition[2] = rand()/1000.0; |
---|
30 | condition[3] = rand()/1000.0; |
---|
31 | /*condition[4] = rand()/1000.0; |
---|
32 | condition[5] = rand()/1000.0; |
---|
33 | condition[6] = rand()/1000.0; |
---|
34 | condition[7] = rand()/1000.0; |
---|
35 | condition[8] = rand()/1000.0;*/ |
---|
36 | |
---|
37 | |
---|
38 | vec* condition_vec = new vec(condition,4); |
---|
39 | emlig1->add_condition(*condition_vec); |
---|
40 | |
---|
41 | emlig1->step_me(i); |
---|
42 | |
---|
43 | vector<int> sizevector; |
---|
44 | for(int s = 0;s<=emlig1->number_of_parameters;s++) |
---|
45 | { |
---|
46 | sizevector.push_back(emlig1->statistic_rowsize(s)); |
---|
47 | } |
---|
48 | } |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | /* |
---|
53 | emlig1->step_me(1); |
---|
54 | |
---|
55 | vec condition = "2.0 0.0 1.0"; |
---|
56 | |
---|
57 | emlig1->add_condition(condition); |
---|
58 | |
---|
59 | vector<int> sizevector; |
---|
60 | for(int s = 0;s<=emlig1->number_of_parameters;s++) |
---|
61 | { |
---|
62 | sizevector.push_back(emlig1->statistic_rowsize(s)); |
---|
63 | } |
---|
64 | |
---|
65 | emlig1->step_me(2); |
---|
66 | |
---|
67 | condition = "2.0 1.0 0.0"; |
---|
68 | |
---|
69 | emlig1->add_condition(condition); |
---|
70 | |
---|
71 | sizevector.clear(); |
---|
72 | for(int s = 0;s<=emlig1->number_of_parameters;s++) |
---|
73 | { |
---|
74 | sizevector.push_back(emlig1->statistic_rowsize(s)); |
---|
75 | } |
---|
76 | */ |
---|
77 | |
---|
78 | return 0; |
---|
79 | } |
---|