Menu

Diff of /VoxelMap.h [r91] .. [r92]  Maximize  Restore

Switch to side-by-side view

--- a/VoxelMap.h
+++ b/VoxelMap.h
@@ -27,6 +27,7 @@
 	bool MemoryFor3DLineMaps();
 	bool AddMemoryForLineMaps();
     void generateMapEdges();
+    
 	//Set map_minimum/maximum, layer_limits, layer_visibility (true)
     //limits[0] = <0,1>
     void SetLayerLimitsFromVoxel(float limits[3]);   
@@ -65,6 +66,10 @@
     float getVolume(float isolevel, bool smaller);
     float getVolumeOfSingleVoxel();
 
+    //get Arithmetic Mean x = 1/n * (sum(xi))
+    float getMean();
+    float getSigma();
+
 
 	vector<vector<vector<float>>> Voxel;
     VoxelMap2D          m_2D_map;
@@ -90,14 +95,14 @@
     float               fTransparencyLevel;
     bool                bMap_surface;
     bool                isPeriodic;
+    float               m_mean;
+    float               m_sigma;
 
     //three basic vectors (they are norm vectors!)
 private:    
 	void VoxelDirectionalContour(n_contour_direction direction,LineMeshStruct *pM);
 	//if x, y or z are out of the map's limits it moves them into the map area. If the map is not periodic, it returns false;
 	bool Move_to_map3Df(float &x, float &y, float &z);
-	bool Move_to_mapInd(float &x, float &y, float &z);
-
-      
+	bool Move_to_mapInd(float &x, float &y, float &z);    
 
 };