diff grid.mm @ 32:ab7c86d0f3d8

V0.3 SZBeta sent out. bristol tests.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 08 Mar 2013 14:54:55 +0000
parents ae4d2c3ce5e0
children 92dba082d957
line wrap: on
line diff
--- a/grid.mm	Fri Mar 01 13:28:45 2013 +0000
+++ b/grid.mm	Fri Mar 08 14:54:55 2013 +0000
@@ -71,8 +71,14 @@
     ///
     // TODO 5bit specific
     // transition sequence.... what a palaver! only need to do once though.
+    
+    // max MRL
     int trans[] = {0,1,2,3,0,4,2,1,0,3,2,1,0,4,2,3,0,1,2,3,0,4,2,1,0,3,2,1,0,4,2,3};
-
+    // balanced
+    int transB[] = {1,2,3,4,5,1,5,2,3,5,2,4,2,3,4,1,4,3,2,3,1,5,3,4,1,5,2,5,3,4,1,3};
+    for(int i = 0; i<codeLength; i++){
+        transB[i] = transB[i] - 1;
+    }
     
     int code[codeLength][paramsPerDim]; // start with normal array
     
@@ -82,7 +88,7 @@
         code[0][j] = 0;
     }
     
-    for(int i=0; i < codeLength-1; i++){  // TODO went off end??
+    for(int i=0; i < codeLength-1; i++){  // don't need last 3
         transSeq.push_back(trans[i]); // member vector
         for(int j=0; j<paramsPerDim; j++){