diff hilbert.h @ 37:8ed7522deaaa

Interpolation.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Tue, 09 Apr 2013 17:14:31 +0100
parents 790939017078
children b91a1859829a
line wrap: on
line diff
--- a/hilbert.h	Tue Apr 09 13:22:28 2013 +0100
+++ b/hilbert.h	Tue Apr 09 17:14:31 2013 +0100
@@ -19,8 +19,6 @@
 
 class Hilbert{
 private:
-    
-public:
     int P; // dimensionas of high D space
     int N; // number of resolution bits
     int codeLength;
@@ -29,13 +27,17 @@
     vector<vector <bool> > theGrayCode;
     vector<unsigned int> theGrayCodeD;
     
-    void init(int N, int P);
+    
     void makeCode();
-    vector<int> calculateParamsFromIndex(unsigned long long coord);
-    unsigned long long calculateIndexFromParams(vector<int> params);
+
     void makeRotationRules();
     int rotate(int vertex, int entryPoint, int direction);
     int rotateInverse(int vertex, int entryPoint, int direction) ;
+public:
+    void init(int N, int P);
+    vector<int> calculateParamsFromIndex(unsigned long long coord);
+    unsigned long long calculateIndexFromParams(vector<int> params);
+
 };