Mercurial > hg > tweakathon2ios
comparison TestController.mm @ 22:8124f46eda65
pretty much working.
ugly though.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Thu, 23 Oct 2014 18:15:46 +0100 |
parents | 851833072cf1 |
children | 2bd658b44c2d |
comparison
equal
deleted
inserted
replaced
21:5cf2b80909fc | 22:8124f46eda65 |
---|---|
8 | 8 |
9 #include "TestController.h" | 9 #include "TestController.h" |
10 const int TestController::numDifferentTests = 80; | 10 const int TestController::numDifferentTests = 80; |
11 const int TestController::totalNumTests = 80; | 11 const int TestController::totalNumTests = 80; |
12 | 12 |
13 | |
14 template <typename T> | |
15 vector<T> makeVector(T a1, T a2,T a3,T a4,T a5,T a6, T a7, T a8){ | |
16 | |
17 vector<T> vec; | |
18 vec.push_back(a1); | |
19 vec.push_back(a2); | |
20 vec.push_back(a3); | |
21 vec.push_back(a4); | |
22 vec.push_back(a5); | |
23 vec.push_back(a6); | |
24 vec.push_back(a7); | |
25 vec.push_back(a8); | |
26 return vec; | |
27 } | |
28 | |
29 void randomise(int& n){ | |
30 n = ofRandom(0,127); | |
31 | |
32 } | |
33 | 13 |
34 vector<vector <bool> > makeCombinations(){ | 14 vector<vector <bool> > makeCombinations(){ |
35 // make all unordered pairs | 15 // make all unordered pairs |
36 int N = TOTAL_NUM_PARAMS; | 16 int N = TOTAL_NUM_PARAMS; |
37 | 17 |
54 } | 34 } |
55 | 35 |
56 } | 36 } |
57 return table; | 37 return table; |
58 } | 38 } |
39 | |
59 //---------------------------------------------------------------------------------------- | 40 //---------------------------------------------------------------------------------------- |
60 | 41 |
61 void TestController::generate2DRandomTests(){ | 42 void TestController::generate2DRandomTests(){ |
62 | 43 |
63 controlPanelType panelType; | 44 controlPanelType panelType; |