diff src/Finder.h @ 53:331a17753663 refactors

If the distance metric is a float, the total path cost should be a double (otherwise discriminatory precision is lost as the overall total accumulates)
author Chris Cannam
date Fri, 14 Nov 2014 10:09:10 +0000
parents a1b7df871496
children 19a93b15fcc3
line wrap: on
line diff
--- a/src/Finder.h	Fri Nov 14 09:45:56 2014 +0000
+++ b/src/Finder.h	Fri Nov 14 10:09:10 2014 +0000
@@ -63,9 +63,9 @@
     float getDistance(int row, int col);
     void setDistance(int row, int col, float b);
 
-    float getPathCost(int row, int col);
-    float getRawPathCost(int row, int col); //!!!???
-    void setPathCost(int row, int col, float i);
+    double getPathCost(int row, int col);
+    double getRawPathCost(int row, int col); //!!!???
+    void setPathCost(int row, int col, double i);
 
     Matcher::Advance getAdvance();
     void setAdvance(Matcher::Advance a);
@@ -73,8 +73,8 @@
     float getDistance();
     void setDistance(float b);
 
-    float getPathCost();
-    void setPathCost(float i);
+    double getPathCost();
+    void setPathCost(double i);
 
     /** Calculates a rectangle of the path cost matrix so that the
      *  minimum cost path between the bottom left and top right